home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #3 / Amiga Plus CD - 2002 - No. 03.iso / AmigaPlus / Tools / Development / stunnel-4.04 / _src / configure < prev    next >
Encoding:
Text File  |  2003-01-01  |  305.8 KB  |  10,399 lines

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.53 for stunnel 4.04.
  4. #
  5. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  6. # Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Find the correct PATH separator.  Usually this is `:', but
  11. # DJGPP uses `;' like DOS.
  12. if test "X${PATH_SEPARATOR+set}" != Xset; then
  13.   UNAME=${UNAME-`uname 2>/dev/null`}
  14.   case X$UNAME in
  15.     *-DOS) lt_cv_sys_path_separator=';' ;;
  16.     *)     lt_cv_sys_path_separator=':' ;;
  17.   esac
  18.   PATH_SEPARATOR=$lt_cv_sys_path_separator
  19. fi
  20.  
  21.  
  22. # Check that we are running under the correct shell.
  23. SHELL=${CONFIG_SHELL-/bin/sh}
  24.  
  25. case X$ECHO in
  26. X*--fallback-echo)
  27.   # Remove one level of quotation (which was required for Make).
  28.   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  29.   ;;
  30. esac
  31.  
  32. echo=${ECHO-echo}
  33. if test "X$1" = X--no-reexec; then
  34.   # Discard the --no-reexec flag, and continue.
  35.   shift
  36. elif test "X$1" = X--fallback-echo; then
  37.   # Avoid inline document here, it may be left over
  38.   :
  39. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  40.   # Yippee, $echo works!
  41.   :
  42. else
  43.   # Restart under the correct shell.
  44.   exec $SHELL "$0" --no-reexec ${1+"$@"}
  45. fi
  46.  
  47. if test "X$1" = X--fallback-echo; then
  48.   # used as fallback echo
  49.   shift
  50.   cat <<EOF
  51.  
  52. EOF
  53.   exit 0
  54. fi
  55.  
  56. # The HP-UX ksh and POSIX shell print the target directory to stdout
  57. # if CDPATH is set.
  58. if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  59.  
  60. if test -z "$ECHO"; then
  61. if test "X${echo_test_string+set}" != Xset; then
  62. # find a string as large as possible, as long as the shell can cope with it
  63.   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  64.     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  65.     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  66.        echo_test_string="`eval $cmd`" &&
  67.        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  68.     then
  69.       break
  70.     fi
  71.   done
  72. fi
  73.  
  74. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  75.    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  76.    test "X$echo_testing_string" = "X$echo_test_string"; then
  77.   :
  78. else
  79.   # The Solaris, AIX, and Digital Unix default echo programs unquote
  80.   # backslashes.  This makes it impossible to quote backslashes using
  81.   #   echo "$something" | sed 's/\\/\\\\/g'
  82.   #
  83.   # So, first we look for a working echo in the user's PATH.
  84.  
  85.   IFS="${IFS=     }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  86.   for dir in $PATH /usr/ucb; do
  87.     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  88.        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  89.        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  90.        test "X$echo_testing_string" = "X$echo_test_string"; then
  91.       echo="$dir/echo"
  92.       break
  93.     fi
  94.   done
  95.   IFS="$save_ifs"
  96.  
  97.   if test "X$echo" = Xecho; then
  98.     # We didn't find a better echo, so look for alternatives.
  99.     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  100.        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  101.        test "X$echo_testing_string" = "X$echo_test_string"; then
  102.       # This shell has a builtin print -r that does the trick.
  103.       echo='print -r'
  104.     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  105.      test "X$CONFIG_SHELL" != X/bin/ksh; then
  106.       # If we have ksh, try running configure again with it.
  107.       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  108.       export ORIGINAL_CONFIG_SHELL
  109.       CONFIG_SHELL=/bin/ksh
  110.       export CONFIG_SHELL
  111.       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  112.     else
  113.       # Try using printf.
  114.       echo='printf %s\n'
  115.       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  116.      echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  117.      test "X$echo_testing_string" = "X$echo_test_string"; then
  118.     # Cool, printf works
  119.     :
  120.       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  121.        test "X$echo_testing_string" = 'X\t' &&
  122.        echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  123.        test "X$echo_testing_string" = "X$echo_test_string"; then
  124.     CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  125.     export CONFIG_SHELL
  126.     SHELL="$CONFIG_SHELL"
  127.     export SHELL
  128.     echo="$CONFIG_SHELL $0 --fallback-echo"
  129.       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  130.        test "X$echo_testing_string" = 'X\t' &&
  131.        echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  132.        test "X$echo_testing_string" = "X$echo_test_string"; then
  133.     echo="$CONFIG_SHELL $0 --fallback-echo"
  134.       else
  135.     # maybe with a smaller string...
  136.     prev=:
  137.  
  138.     for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  139.       if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  140.       then
  141.         break
  142.       fi
  143.       prev="$cmd"
  144.     done
  145.  
  146.     if test "$prev" != 'sed 50q "$0"'; then
  147.       echo_test_string=`eval $prev`
  148.       export echo_test_string
  149.       exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  150.     else
  151.       # Oops.  We lost completely, so just stick with echo.
  152.       echo=echo
  153.     fi
  154.       fi
  155.     fi
  156.   fi
  157. fi
  158. fi
  159.  
  160. # Copy echo and quote the copy suitably for passing to libtool from
  161. # the Makefile, instead of quoting the original, which is used later.
  162. ECHO=$echo
  163. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  164.    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  165. fi
  166.  
  167.  
  168.  
  169. if expr a : '\(a\)' >/dev/null 2>&1; then
  170.   as_expr=expr
  171. else
  172.   as_expr=false
  173. fi
  174.  
  175.  
  176. ## --------------------- ##
  177. ## M4sh Initialization.  ##
  178. ## --------------------- ##
  179.  
  180. # Be Bourne compatible
  181. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  182.   emulate sh
  183.   NULLCMD=:
  184. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  185.   set -o posix
  186. fi
  187.  
  188. # NLS nuisances.
  189. # Support unset when possible.
  190. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  191.   as_unset=unset
  192. else
  193.   as_unset=false
  194. fi
  195.  
  196. (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
  197.     { $as_unset LANG || test "${LANG+set}" != set; } ||
  198.       { LANG=C; export LANG; }
  199. (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
  200.     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
  201.       { LC_ALL=C; export LC_ALL; }
  202. (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
  203.     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
  204.       { LC_TIME=C; export LC_TIME; }
  205. (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
  206.     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
  207.       { LC_CTYPE=C; export LC_CTYPE; }
  208. (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
  209.     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
  210.       { LANGUAGE=C; export LANGUAGE; }
  211. (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
  212.     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
  213.       { LC_COLLATE=C; export LC_COLLATE; }
  214. (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
  215.     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
  216.       { LC_NUMERIC=C; export LC_NUMERIC; }
  217. (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
  218.     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
  219.       { LC_MESSAGES=C; export LC_MESSAGES; }
  220.  
  221.  
  222. # Name of the executable.
  223. as_me=`(basename "$0") 2>/dev/null ||
  224. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  225.      X"$0" : 'X\(//\)$' \| \
  226.      X"$0" : 'X\(/\)$' \| \
  227.      .     : '\(.\)' 2>/dev/null ||
  228. echo X/"$0" |
  229.     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  230.         /^X\/\(\/\/\)$/{ s//\1/; q; }
  231.         /^X\/\(\/\).*/{ s//\1/; q; }
  232.         s/.*/./; q'`
  233.  
  234. # PATH needs CR, and LINENO needs CR and PATH.
  235. # Avoid depending upon Character Ranges.
  236. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  237. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  238. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  239. as_cr_digits='0123456789'
  240. as_cr_alnum=$as_cr_Letters$as_cr_digits
  241.  
  242. # The user is always right.
  243. if test "${PATH_SEPARATOR+set}" != set; then
  244.   echo "#! /bin/sh" >conftest.sh
  245.   echo  "exit 0"   >>conftest.sh
  246.   chmod +x conftest.sh
  247.   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
  248.     PATH_SEPARATOR=';'
  249.   else
  250.     PATH_SEPARATOR=:
  251.   fi
  252.   rm -f conftest.sh
  253. fi
  254.  
  255.  
  256.   as_lineno_1=$LINENO
  257.   as_lineno_2=$LINENO
  258.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  259.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  260.   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  261.   # Find who we are.  Look in the path if we contain no path at all
  262.   # relative or not.
  263.   case $0 in
  264.     *[\\/]* ) as_myself=$0 ;;
  265.     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  266. for as_dir in $PATH
  267. do
  268.   IFS=$as_save_IFS
  269.   test -z "$as_dir" && as_dir=.
  270.   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  271. done
  272.  
  273.        ;;
  274.   esac
  275.   # We did not find ourselves, most probably we were run as `sh COMMAND'
  276.   # in which case we are not to be found in the path.
  277.   if test "x$as_myself" = x; then
  278.     as_myself=$0
  279.   fi
  280.   if test ! -f "$as_myself"; then
  281.     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  282.    { (exit 1); exit 1; }; }
  283.   fi
  284.   case $CONFIG_SHELL in
  285.   '')
  286.     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  287. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  288. do
  289.   IFS=$as_save_IFS
  290.   test -z "$as_dir" && as_dir=.
  291.   for as_base in sh bash ksh sh5; do
  292.      case $as_dir in
  293.      /*)
  294.        if ("$as_dir/$as_base" -c '
  295.   as_lineno_1=$LINENO
  296.   as_lineno_2=$LINENO
  297.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  298.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  299.   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
  300.          CONFIG_SHELL=$as_dir/$as_base
  301.          export CONFIG_SHELL
  302.          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  303.        fi;;
  304.      esac
  305.        done
  306. done
  307. ;;
  308.   esac
  309.  
  310.   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  311.   # uniformly replaced by the line number.  The first 'sed' inserts a
  312.   # line-number line before each line; the second 'sed' does the real
  313.   # work.  The second script uses 'N' to pair each line-number line
  314.   # with the numbered line, and appends trailing '-' during
  315.   # substitution so that $LINENO is not a special case at line end.
  316.   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  317.   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  318.   sed '=' <$as_myself |
  319.     sed '
  320.       N
  321.       s,$,-,
  322.       : loop
  323.       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  324.       t loop
  325.       s,-$,,
  326.       s,^['$as_cr_digits']*\n,,
  327.     ' >$as_me.lineno &&
  328.   chmod +x $as_me.lineno ||
  329.     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  330.    { (exit 1); exit 1; }; }
  331.  
  332.   # Don't try to exec as it changes $[0], causing all sort of problems
  333.   # (the dirname of $[0] is not the place where we might find the
  334.   # original and so on.  Autoconf is especially sensible to this).
  335.   . ./$as_me.lineno
  336.   # Exit status is that of the last command.
  337.   exit
  338. }
  339.  
  340.  
  341. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  342.   *c*,-n*) ECHO_N= ECHO_C='
  343. ' ECHO_T='    ' ;;
  344.   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  345.   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
  346. esac
  347.  
  348. if expr a : '\(a\)' >/dev/null 2>&1; then
  349.   as_expr=expr
  350. else
  351.   as_expr=false
  352. fi
  353.  
  354. rm -f conf$$ conf$$.exe conf$$.file
  355. echo >conf$$.file
  356. if ln -s conf$$.file conf$$ 2>/dev/null; then
  357.   # We could just check for DJGPP; but this test a) works b) is more generic
  358.   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  359.   if test -f conf$$.exe; then
  360.     # Don't use ln at all; we don't have any links
  361.     as_ln_s='cp -p'
  362.   else
  363.     as_ln_s='ln -s'
  364.   fi
  365. elif ln conf$$.file conf$$ 2>/dev/null; then
  366.   as_ln_s=ln
  367. else
  368.   as_ln_s='cp -p'
  369. fi
  370. rm -f conf$$ conf$$.exe conf$$.file
  371.  
  372. as_executable_p="test -f"
  373.  
  374. # Sed expression to map a string onto a valid CPP name.
  375. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  376.  
  377. # Sed expression to map a string onto a valid variable name.
  378. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  379.  
  380.  
  381. # IFS
  382. # We need space, tab and new line, in precisely that order.
  383. as_nl='
  384. '
  385. IFS="     $as_nl"
  386.  
  387. # CDPATH.
  388. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
  389.  
  390.  
  391. # Name of the host.
  392. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  393. # so uname gets run too.
  394. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  395.  
  396. exec 6>&1
  397.  
  398. #
  399. # Initializations.
  400. #
  401. ac_default_prefix=/usr/local
  402. cross_compiling=no
  403. subdirs=
  404. MFLAGS=
  405. MAKEFLAGS=
  406. SHELL=${CONFIG_SHELL-/bin/sh}
  407.  
  408. # Maximum number of lines to put in a shell here document.
  409. # This variable seems obsolete.  It should probably be removed, and
  410. # only ac_max_sed_lines should be used.
  411. : ${ac_max_here_lines=38}
  412.  
  413. # Identity of this package.
  414. PACKAGE_NAME='stunnel'
  415. PACKAGE_TARNAME='stunnel'
  416. PACKAGE_VERSION='4.04'
  417. PACKAGE_STRING='stunnel 4.04'
  418. PACKAGE_BUGREPORT=''
  419.  
  420. ac_unique_file="src/stunnel.c"
  421. # Factoring default headers for most tests.
  422. ac_includes_default="\
  423. #include <stdio.h>
  424. #if HAVE_SYS_TYPES_H
  425. # include <sys/types.h>
  426. #endif
  427. #if HAVE_SYS_STAT_H
  428. # include <sys/stat.h>
  429. #endif
  430. #if STDC_HEADERS
  431. # include <stdlib.h>
  432. # include <stddef.h>
  433. #else
  434. # if HAVE_STDLIB_H
  435. #  include <stdlib.h>
  436. # endif
  437. #endif
  438. #if HAVE_STRING_H
  439. # if !STDC_HEADERS && HAVE_MEMORY_H
  440. #  include <memory.h>
  441. # endif
  442. # include <string.h>
  443. #endif
  444. #if HAVE_STRINGS_H
  445. # include <strings.h>
  446. #endif
  447. #if HAVE_INTTYPES_H
  448. # include <inttypes.h>
  449. #else
  450. # if HAVE_STDINT_H
  451. #  include <stdint.h>
  452. # endif
  453. #endif
  454. #if HAVE_UNISTD_H
  455. # include <unistd.h>
  456. #endif"
  457.  
  458.  
  459. # Initialize some variables set by options.
  460. ac_init_help=
  461. ac_init_version=false
  462. # The variables have the same names as the options, with
  463. # dashes changed to underlines.
  464. cache_file=/dev/null
  465. exec_prefix=NONE
  466. no_create=
  467. no_recursion=
  468. prefix=NONE
  469. program_prefix=NONE
  470. program_suffix=NONE
  471. program_transform_name=s,x,x,
  472. silent=
  473. site=
  474. srcdir=
  475. verbose=
  476. x_includes=NONE
  477. x_libraries=NONE
  478.  
  479. # Installation directory options.
  480. # These are left unexpanded so users can "make install exec_prefix=/foo"
  481. # and all the variables that are supposed to be based on exec_prefix
  482. # by default will actually change.
  483. # Use braces instead of parens because sh, perl, etc. also accept them.
  484. bindir='${exec_prefix}/bin'
  485. sbindir='${exec_prefix}/sbin'
  486. libexecdir='${exec_prefix}/libexec'
  487. datadir='${prefix}/share'
  488. sysconfdir='${prefix}/etc'
  489. sharedstatedir='${prefix}/com'
  490. localstatedir='${prefix}/var'
  491. libdir='${exec_prefix}/lib'
  492. includedir='${prefix}/include'
  493. oldincludedir='/usr/include'
  494. infodir='${prefix}/info'
  495. mandir='${prefix}/man'
  496.  
  497. ac_prev=
  498. for ac_option
  499. do
  500.   # If the previous option needs an argument, assign it.
  501.   if test -n "$ac_prev"; then
  502.     eval "$ac_prev=\$ac_option"
  503.     ac_prev=
  504.     continue
  505.   fi
  506.  
  507.   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  508.  
  509.   # Accept the important Cygnus configure options, so we can diagnose typos.
  510.  
  511.   case $ac_option in
  512.  
  513.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  514.     ac_prev=bindir ;;
  515.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  516.     bindir=$ac_optarg ;;
  517.  
  518.   -build | --build | --buil | --bui | --bu)
  519.     ac_prev=build_alias ;;
  520.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  521.     build_alias=$ac_optarg ;;
  522.  
  523.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  524.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  525.     ac_prev=cache_file ;;
  526.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  527.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  528.     cache_file=$ac_optarg ;;
  529.  
  530.   --config-cache | -C)
  531.     cache_file=config.cache ;;
  532.  
  533.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  534.     ac_prev=datadir ;;
  535.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  536.   | --da=*)
  537.     datadir=$ac_optarg ;;
  538.  
  539.   -disable-* | --disable-*)
  540.     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  541.     # Reject names that are not valid shell variable names.
  542.     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  543.       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  544.    { (exit 1); exit 1; }; }
  545.     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  546.     eval "enable_$ac_feature=no" ;;
  547.  
  548.   -enable-* | --enable-*)
  549.     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  550.     # Reject names that are not valid shell variable names.
  551.     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  552.       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  553.    { (exit 1); exit 1; }; }
  554.     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  555.     case $ac_option in
  556.       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  557.       *) ac_optarg=yes ;;
  558.     esac
  559.     eval "enable_$ac_feature='$ac_optarg'" ;;
  560.  
  561.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  562.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  563.   | --exec | --exe | --ex)
  564.     ac_prev=exec_prefix ;;
  565.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  566.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  567.   | --exec=* | --exe=* | --ex=*)
  568.     exec_prefix=$ac_optarg ;;
  569.  
  570.   -gas | --gas | --ga | --g)
  571.     # Obsolete; use --with-gas.
  572.     with_gas=yes ;;
  573.  
  574.   -help | --help | --hel | --he | -h)
  575.     ac_init_help=long ;;
  576.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  577.     ac_init_help=recursive ;;
  578.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  579.     ac_init_help=short ;;
  580.  
  581.   -host | --host | --hos | --ho)
  582.     ac_prev=host_alias ;;
  583.   -host=* | --host=* | --hos=* | --ho=*)
  584.     host_alias=$ac_optarg ;;
  585.  
  586.   -includedir | --includedir | --includedi | --included | --include \
  587.   | --includ | --inclu | --incl | --inc)
  588.     ac_prev=includedir ;;
  589.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  590.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  591.     includedir=$ac_optarg ;;
  592.  
  593.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  594.     ac_prev=infodir ;;
  595.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  596.     infodir=$ac_optarg ;;
  597.  
  598.   -libdir | --libdir | --libdi | --libd)
  599.     ac_prev=libdir ;;
  600.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  601.     libdir=$ac_optarg ;;
  602.  
  603.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  604.   | --libexe | --libex | --libe)
  605.     ac_prev=libexecdir ;;
  606.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  607.   | --libexe=* | --libex=* | --libe=*)
  608.     libexecdir=$ac_optarg ;;
  609.  
  610.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  611.   | --localstate | --localstat | --localsta | --localst \
  612.   | --locals | --local | --loca | --loc | --lo)
  613.     ac_prev=localstatedir ;;
  614.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  615.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  616.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  617.     localstatedir=$ac_optarg ;;
  618.  
  619.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  620.     ac_prev=mandir ;;
  621.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  622.     mandir=$ac_optarg ;;
  623.  
  624.   -nfp | --nfp | --nf)
  625.     # Obsolete; use --without-fp.
  626.     with_fp=no ;;
  627.  
  628.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  629.   | --no-cr | --no-c | -n)
  630.     no_create=yes ;;
  631.  
  632.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  633.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  634.     no_recursion=yes ;;
  635.  
  636.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  637.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  638.   | --oldin | --oldi | --old | --ol | --o)
  639.     ac_prev=oldincludedir ;;
  640.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  641.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  642.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  643.     oldincludedir=$ac_optarg ;;
  644.  
  645.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  646.     ac_prev=prefix ;;
  647.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  648.     prefix=$ac_optarg ;;
  649.  
  650.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  651.   | --program-pre | --program-pr | --program-p)
  652.     ac_prev=program_prefix ;;
  653.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  654.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  655.     program_prefix=$ac_optarg ;;
  656.  
  657.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  658.   | --program-suf | --program-su | --program-s)
  659.     ac_prev=program_suffix ;;
  660.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  661.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  662.     program_suffix=$ac_optarg ;;
  663.  
  664.   -program-transform-name | --program-transform-name \
  665.   | --program-transform-nam | --program-transform-na \
  666.   | --program-transform-n | --program-transform- \
  667.   | --program-transform | --program-transfor \
  668.   | --program-transfo | --program-transf \
  669.   | --program-trans | --program-tran \
  670.   | --progr-tra | --program-tr | --program-t)
  671.     ac_prev=program_transform_name ;;
  672.   -program-transform-name=* | --program-transform-name=* \
  673.   | --program-transform-nam=* | --program-transform-na=* \
  674.   | --program-transform-n=* | --program-transform-=* \
  675.   | --program-transform=* | --program-transfor=* \
  676.   | --program-transfo=* | --program-transf=* \
  677.   | --program-trans=* | --program-tran=* \
  678.   | --progr-tra=* | --program-tr=* | --program-t=*)
  679.     program_transform_name=$ac_optarg ;;
  680.  
  681.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  682.   | -silent | --silent | --silen | --sile | --sil)
  683.     silent=yes ;;
  684.  
  685.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  686.     ac_prev=sbindir ;;
  687.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  688.   | --sbi=* | --sb=*)
  689.     sbindir=$ac_optarg ;;
  690.  
  691.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  692.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  693.   | --sharedst | --shareds | --shared | --share | --shar \
  694.   | --sha | --sh)
  695.     ac_prev=sharedstatedir ;;
  696.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  697.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  698.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  699.   | --sha=* | --sh=*)
  700.     sharedstatedir=$ac_optarg ;;
  701.  
  702.   -site | --site | --sit)
  703.     ac_prev=site ;;
  704.   -site=* | --site=* | --sit=*)
  705.     site=$ac_optarg ;;
  706.  
  707.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  708.     ac_prev=srcdir ;;
  709.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  710.     srcdir=$ac_optarg ;;
  711.  
  712.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  713.   | --syscon | --sysco | --sysc | --sys | --sy)
  714.     ac_prev=sysconfdir ;;
  715.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  716.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  717.     sysconfdir=$ac_optarg ;;
  718.  
  719.   -target | --target | --targe | --targ | --tar | --ta | --t)
  720.     ac_prev=target_alias ;;
  721.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  722.     target_alias=$ac_optarg ;;
  723.  
  724.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  725.     verbose=yes ;;
  726.  
  727.   -version | --version | --versio | --versi | --vers | -V)
  728.     ac_init_version=: ;;
  729.  
  730.   -with-* | --with-*)
  731.     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  732.     # Reject names that are not valid shell variable names.
  733.     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  734.       { echo "$as_me: error: invalid package name: $ac_package" >&2
  735.    { (exit 1); exit 1; }; }
  736.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  737.     case $ac_option in
  738.       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  739.       *) ac_optarg=yes ;;
  740.     esac
  741.     eval "with_$ac_package='$ac_optarg'" ;;
  742.  
  743.   -without-* | --without-*)
  744.     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  745.     # Reject names that are not valid shell variable names.
  746.     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  747.       { echo "$as_me: error: invalid package name: $ac_package" >&2
  748.    { (exit 1); exit 1; }; }
  749.     ac_package=`echo $ac_package | sed 's/-/_/g'`
  750.     eval "with_$ac_package=no" ;;
  751.  
  752.   --x)
  753.     # Obsolete; use --with-x.
  754.     with_x=yes ;;
  755.  
  756.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  757.   | --x-incl | --x-inc | --x-in | --x-i)
  758.     ac_prev=x_includes ;;
  759.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  760.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  761.     x_includes=$ac_optarg ;;
  762.  
  763.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  764.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  765.     ac_prev=x_libraries ;;
  766.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  767.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  768.     x_libraries=$ac_optarg ;;
  769.  
  770.   -*) { echo "$as_me: error: unrecognized option: $ac_option
  771. Try \`$0 --help' for more information." >&2
  772.    { (exit 1); exit 1; }; }
  773.     ;;
  774.  
  775.   *=*)
  776.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  777.     # Reject names that are not valid shell variable names.
  778.     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  779.       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  780.    { (exit 1); exit 1; }; }
  781.     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  782.     eval "$ac_envvar='$ac_optarg'"
  783.     export $ac_envvar ;;
  784.  
  785.   *)
  786.     # FIXME: should be removed in autoconf 3.0.
  787.     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  788.     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  789.       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  790.     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  791.     ;;
  792.  
  793.   esac
  794. done
  795.  
  796. if test -n "$ac_prev"; then
  797.   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  798.   { echo "$as_me: error: missing argument to $ac_option" >&2
  799.    { (exit 1); exit 1; }; }
  800. fi
  801.  
  802. # Be sure to have absolute paths.
  803. for ac_var in exec_prefix prefix
  804. do
  805.   eval ac_val=$`echo $ac_var`
  806.   case $ac_val in
  807.     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  808.     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  809.    { (exit 1); exit 1; }; };;
  810.   esac
  811. done
  812.  
  813. # Be sure to have absolute paths.
  814. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  815.               localstatedir libdir includedir oldincludedir infodir mandir
  816. do
  817.   eval ac_val=$`echo $ac_var`
  818.   case $ac_val in
  819.     [\\/$]* | ?:[\\/]* ) ;;
  820.     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  821.    { (exit 1); exit 1; }; };;
  822.   esac
  823. done
  824.  
  825. # There might be people who depend on the old broken behavior: `$host'
  826. # used to hold the argument of --host etc.
  827. # FIXME: To remove some day.
  828. build=$build_alias
  829. host=$host_alias
  830. target=$target_alias
  831.  
  832. # FIXME: To remove some day.
  833. if test "x$host_alias" != x; then
  834.   if test "x$build_alias" = x; then
  835.     cross_compiling=maybe
  836.     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  837.     If a cross compiler is detected then cross compile mode will be used." >&2
  838.   elif test "x$build_alias" != "x$host_alias"; then
  839.     cross_compiling=yes
  840.   fi
  841. fi
  842.  
  843. ac_tool_prefix=
  844. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  845.  
  846. test "$silent" = yes && exec 6>/dev/null
  847.  
  848.  
  849. # Find the source files, if location was not specified.
  850. if test -z "$srcdir"; then
  851.   ac_srcdir_defaulted=yes
  852.   # Try the directory containing this script, then its parent.
  853.   ac_confdir=`(dirname "$0") 2>/dev/null ||
  854. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  855.          X"$0" : 'X\(//\)[^/]' \| \
  856.          X"$0" : 'X\(//\)$' \| \
  857.          X"$0" : 'X\(/\)' \| \
  858.          .     : '\(.\)' 2>/dev/null ||
  859. echo X"$0" |
  860.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  861.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  862.         /^X\(\/\/\)$/{ s//\1/; q; }
  863.         /^X\(\/\).*/{ s//\1/; q; }
  864.         s/.*/./; q'`
  865.   srcdir=$ac_confdir
  866.   if test ! -r $srcdir/$ac_unique_file; then
  867.     srcdir=..
  868.   fi
  869. else
  870.   ac_srcdir_defaulted=no
  871. fi
  872. if test ! -r $srcdir/$ac_unique_file; then
  873.   if test "$ac_srcdir_defaulted" = yes; then
  874.     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  875.    { (exit 1); exit 1; }; }
  876.   else
  877.     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  878.    { (exit 1); exit 1; }; }
  879.   fi
  880. fi
  881. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  882. ac_env_build_alias_set=${build_alias+set}
  883. ac_env_build_alias_value=$build_alias
  884. ac_cv_env_build_alias_set=${build_alias+set}
  885. ac_cv_env_build_alias_value=$build_alias
  886. ac_env_host_alias_set=${host_alias+set}
  887. ac_env_host_alias_value=$host_alias
  888. ac_cv_env_host_alias_set=${host_alias+set}
  889. ac_cv_env_host_alias_value=$host_alias
  890. ac_env_target_alias_set=${target_alias+set}
  891. ac_env_target_alias_value=$target_alias
  892. ac_cv_env_target_alias_set=${target_alias+set}
  893. ac_cv_env_target_alias_value=$target_alias
  894. ac_env_CC_set=${CC+set}
  895. ac_env_CC_value=$CC
  896. ac_cv_env_CC_set=${CC+set}
  897. ac_cv_env_CC_value=$CC
  898. ac_env_CFLAGS_set=${CFLAGS+set}
  899. ac_env_CFLAGS_value=$CFLAGS
  900. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  901. ac_cv_env_CFLAGS_value=$CFLAGS
  902. ac_env_LDFLAGS_set=${LDFLAGS+set}
  903. ac_env_LDFLAGS_value=$LDFLAGS
  904. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  905. ac_cv_env_LDFLAGS_value=$LDFLAGS
  906. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  907. ac_env_CPPFLAGS_value=$CPPFLAGS
  908. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  909. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  910. ac_env_CPP_set=${CPP+set}
  911. ac_env_CPP_value=$CPP
  912. ac_cv_env_CPP_set=${CPP+set}
  913. ac_cv_env_CPP_value=$CPP
  914.  
  915. #
  916. # Report the --help message.
  917. #
  918. if test "$ac_init_help" = "long"; then
  919.   # Omit some internal or obsolete options to make the list less imposing.
  920.   # This message is too long to be a string in the A/UX 3.1 sh.
  921.   cat <<_ACEOF
  922. \`configure' configures stunnel 4.04 to adapt to many kinds of systems.
  923.  
  924. Usage: $0 [OPTION]... [VAR=VALUE]...
  925.  
  926. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  927. VAR=VALUE.  See below for descriptions of some of the useful variables.
  928.  
  929. Defaults for the options are specified in brackets.
  930.  
  931. Configuration:
  932.   -h, --help              display this help and exit
  933.       --help=short        display options specific to this package
  934.       --help=recursive    display the short help of all the included packages
  935.   -V, --version           display version information and exit
  936.   -q, --quiet, --silent   do not print \`checking...' messages
  937.       --cache-file=FILE   cache test results in FILE [disabled]
  938.   -C, --config-cache      alias for \`--cache-file=config.cache'
  939.   -n, --no-create         do not create output files
  940.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  941.  
  942. _ACEOF
  943.  
  944.   cat <<_ACEOF
  945. Installation directories:
  946.   --prefix=PREFIX         install architecture-independent files in PREFIX
  947.                           [$ac_default_prefix]
  948.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  949.                           [PREFIX]
  950.  
  951. By default, \`make install' will install all the files in
  952. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  953. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  954. for instance \`--prefix=\$HOME'.
  955.  
  956. For better control, use the options below.
  957.  
  958. Fine tuning of the installation directories:
  959.   --bindir=DIR           user executables [EPREFIX/bin]
  960.   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  961.   --libexecdir=DIR       program executables [EPREFIX/libexec]
  962.   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  963.   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  964.   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  965.   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  966.   --libdir=DIR           object code libraries [EPREFIX/lib]
  967.   --includedir=DIR       C header files [PREFIX/include]
  968.   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  969.   --infodir=DIR          info documentation [PREFIX/info]
  970.   --mandir=DIR           man documentation [PREFIX/man]
  971. _ACEOF
  972.  
  973.   cat <<\_ACEOF
  974.  
  975. Program names:
  976.   --program-prefix=PREFIX            prepend PREFIX to installed program names
  977.   --program-suffix=SUFFIX            append SUFFIX to installed program names
  978.   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  979.  
  980. System types:
  981.   --build=BUILD     configure for building on BUILD [guessed]
  982.   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  983. _ACEOF
  984. fi
  985.  
  986. if test -n "$ac_init_help"; then
  987.   case $ac_init_help in
  988.      short | recursive ) echo "Configuration of stunnel 4.04:";;
  989.    esac
  990.   cat <<\_ACEOF
  991.  
  992. Optional Features:
  993.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  994.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  995.   --enable-static=PKGS  build static libraries default=no
  996.   --enable-shared=PKGS  build shared libraries default=yes
  997.   --enable-fast-install=PKGS  optimize for fast installation default=yes
  998.   --disable-libtool-lock  avoid locking (might break parallel builds)
  999.   --disable-rsa           Disable RSA support
  1000.   --enable-dh             Enable DH support
  1001.  
  1002. Optional Packages:
  1003.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1004.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1005.   --with-gnu-ld           assume the C compiler uses GNU ld default=no
  1006.   --with-pic              try to use only PIC/non-PIC objects default=use both
  1007.   --with-ssl=DIR          location of installed SSL libraries/include files
  1008.   --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
  1009.   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
  1010.   --with-tcp-wrappers     Use the libwrap (TCP wrappers) library
  1011.  
  1012. Some influential environment variables:
  1013.   CC          C compiler command
  1014.   CFLAGS      C compiler flags
  1015.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1016.               nonstandard directory <lib dir>
  1017.   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
  1018.               headers in a nonstandard directory <include dir>
  1019.   CPP         C preprocessor
  1020.  
  1021. Use these variables to override the choices made by `configure' or to help
  1022. it to find libraries and programs with nonstandard names/locations.
  1023.  
  1024. _ACEOF
  1025. fi
  1026.  
  1027. if test "$ac_init_help" = "recursive"; then
  1028.   # If there are subdirs, report their specific --help.
  1029.   ac_popdir=`pwd`
  1030.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1031.     test -d $ac_dir || continue
  1032.     ac_builddir=.
  1033.  
  1034. if test "$ac_dir" != .; then
  1035.   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1036.   # A "../" for each directory in $ac_dir_suffix.
  1037.   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  1038. else
  1039.   ac_dir_suffix= ac_top_builddir=
  1040. fi
  1041.  
  1042. case $srcdir in
  1043.   .)  # No --srcdir option.  We are building in place.
  1044.     ac_srcdir=.
  1045.     if test -z "$ac_top_builddir"; then
  1046.        ac_top_srcdir=.
  1047.     else
  1048.        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1049.     fi ;;
  1050.   [\\/]* | ?:[\\/]* )  # Absolute path.
  1051.     ac_srcdir=$srcdir$ac_dir_suffix;
  1052.     ac_top_srcdir=$srcdir ;;
  1053.   *) # Relative path.
  1054.     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1055.     ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1056. esac
  1057. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  1058. # absolute.
  1059. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  1060. ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
  1061. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  1062. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  1063.  
  1064.     cd $ac_dir
  1065.     # Check for guested configure; otherwise get Cygnus style configure.
  1066.     if test -f $ac_srcdir/configure.gnu; then
  1067.       echo
  1068.       $SHELL $ac_srcdir/configure.gnu  --help=recursive
  1069.     elif test -f $ac_srcdir/configure; then
  1070.       echo
  1071.       $SHELL $ac_srcdir/configure  --help=recursive
  1072.     elif test -f $ac_srcdir/configure.ac ||
  1073.            test -f $ac_srcdir/configure.in; then
  1074.       echo
  1075.       $ac_configure --help
  1076.     else
  1077.       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1078.     fi
  1079.     cd $ac_popdir
  1080.   done
  1081. fi
  1082.  
  1083. test -n "$ac_init_help" && exit 0
  1084. if $ac_init_version; then
  1085.   cat <<\_ACEOF
  1086. stunnel configure 4.04
  1087. generated by GNU Autoconf 2.53
  1088.  
  1089. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  1090. Free Software Foundation, Inc.
  1091. This configure script is free software; the Free Software Foundation
  1092. gives unlimited permission to copy, distribute and modify it.
  1093. _ACEOF
  1094.   exit 0
  1095. fi
  1096. exec 5>config.log
  1097. cat >&5 <<_ACEOF
  1098. This file contains any messages produced by compilers while
  1099. running configure, to aid debugging if configure makes a mistake.
  1100.  
  1101. It was created by stunnel $as_me 4.04, which was
  1102. generated by GNU Autoconf 2.53.  Invocation command line was
  1103.  
  1104.   $ $0 $@
  1105.  
  1106. _ACEOF
  1107. {
  1108. cat <<_ASUNAME
  1109. ## --------- ##
  1110. ## Platform. ##
  1111. ## --------- ##
  1112.  
  1113. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1114. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1115. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1116. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1117. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1118.  
  1119. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1120. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1121.  
  1122. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1123. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1124. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1125. hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
  1126. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1127. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1128. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1129.  
  1130. _ASUNAME
  1131.  
  1132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1133. for as_dir in $PATH
  1134. do
  1135.   IFS=$as_save_IFS
  1136.   test -z "$as_dir" && as_dir=.
  1137.   echo "PATH: $as_dir"
  1138. done
  1139.  
  1140. } >&5
  1141.  
  1142. cat >&5 <<_ACEOF
  1143.  
  1144.  
  1145. ## ----------- ##
  1146. ## Core tests. ##
  1147. ## ----------- ##
  1148.  
  1149. _ACEOF
  1150.  
  1151.  
  1152. # Keep a trace of the command line.
  1153. # Strip out --no-create and --no-recursion so they do not pile up.
  1154. # Also quote any args containing shell meta-characters.
  1155. ac_configure_args=
  1156. ac_sep=
  1157. for ac_arg
  1158. do
  1159.   case $ac_arg in
  1160.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1161.   | --no-cr | --no-c | -n ) continue ;;
  1162.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1163.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1164.     continue ;;
  1165.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1166.     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1167.   esac
  1168.   case " $ac_configure_args " in
  1169.     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1170.     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1171.        ac_sep=" " ;;
  1172.   esac
  1173.   # Get rid of the leading space.
  1174. done
  1175.  
  1176. # When interrupted or exit'd, cleanup temporary files, and complete
  1177. # config.log.  We remove comments because anyway the quotes in there
  1178. # would cause problems or look ugly.
  1179. # WARNING: Be sure not to use single quotes in there, as some shells,
  1180. # such as our DU 5.0 friend, will then `close' the trap.
  1181. trap 'exit_status=$?
  1182.   # Save into config.log some information that might help in debugging.
  1183.   {
  1184.     echo
  1185.     cat <<\_ASBOX
  1186. ## ---------------- ##
  1187. ## Cache variables. ##
  1188. ## ---------------- ##
  1189. _ASBOX
  1190.     echo
  1191.     # The following way of writing the cache mishandles newlines in values,
  1192. {
  1193.   (set) 2>&1 |
  1194.     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1195.     *ac_space=\ *)
  1196.       sed -n \
  1197.         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1198.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1199.       ;;
  1200.     *)
  1201.       sed -n \
  1202.         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1203.       ;;
  1204.     esac;
  1205. }
  1206.     echo
  1207.     if test -s confdefs.h; then
  1208.       cat <<\_ASBOX
  1209. ## ----------- ##
  1210. ## confdefs.h. ##
  1211. ## ----------- ##
  1212. _ASBOX
  1213.       echo
  1214.       sed "/^$/d" confdefs.h
  1215.       echo
  1216.     fi
  1217.     test "$ac_signal" != 0 &&
  1218.       echo "$as_me: caught signal $ac_signal"
  1219.     echo "$as_me: exit $exit_status"
  1220.   } >&5
  1221.   rm -f core core.* *.core &&
  1222.   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1223.     exit $exit_status
  1224.      ' 0
  1225. for ac_signal in 1 2 13 15; do
  1226.   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1227. done
  1228. ac_signal=0
  1229.  
  1230. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1231. rm -rf conftest* confdefs.h
  1232. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1233. echo >confdefs.h
  1234.  
  1235. # Predefined preprocessor variables.
  1236.  
  1237. cat >>confdefs.h <<_ACEOF
  1238. #define PACKAGE_NAME "$PACKAGE_NAME"
  1239. _ACEOF
  1240.  
  1241.  
  1242. cat >>confdefs.h <<_ACEOF
  1243. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1244. _ACEOF
  1245.  
  1246.  
  1247. cat >>confdefs.h <<_ACEOF
  1248. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1249. _ACEOF
  1250.  
  1251.  
  1252. cat >>confdefs.h <<_ACEOF
  1253. #define PACKAGE_STRING "$PACKAGE_STRING"
  1254. _ACEOF
  1255.  
  1256.  
  1257. cat >>confdefs.h <<_ACEOF
  1258. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1259. _ACEOF
  1260.  
  1261.  
  1262. # Let the site file select an alternate cache file if it wants to.
  1263. # Prefer explicitly selected file to automatically selected ones.
  1264. if test -z "$CONFIG_SITE"; then
  1265.   if test "x$prefix" != xNONE; then
  1266.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1267.   else
  1268.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1269.   fi
  1270. fi
  1271. for ac_site_file in $CONFIG_SITE; do
  1272.   if test -r "$ac_site_file"; then
  1273.     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1274. echo "$as_me: loading site script $ac_site_file" >&6;}
  1275.     sed 's/^/| /' "$ac_site_file" >&5
  1276.     . "$ac_site_file"
  1277.   fi
  1278. done
  1279.  
  1280. if test -r "$cache_file"; then
  1281.   # Some versions of bash will fail to source /dev/null (special
  1282.   # files actually), so we avoid doing that.
  1283.   if test -f "$cache_file"; then
  1284.     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1285. echo "$as_me: loading cache $cache_file" >&6;}
  1286.     case $cache_file in
  1287.       [\\/]* | ?:[\\/]* ) . $cache_file;;
  1288.       *)                      . ./$cache_file;;
  1289.     esac
  1290.   fi
  1291. else
  1292.   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1293. echo "$as_me: creating cache $cache_file" >&6;}
  1294.   >$cache_file
  1295. fi
  1296.  
  1297. # Check that the precious variables saved in the cache have kept the same
  1298. # value.
  1299. ac_cache_corrupted=false
  1300. for ac_var in `(set) 2>&1 |
  1301.                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1302.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1303.   eval ac_new_set=\$ac_env_${ac_var}_set
  1304.   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1305.   eval ac_new_val="\$ac_env_${ac_var}_value"
  1306.   case $ac_old_set,$ac_new_set in
  1307.     set,)
  1308.       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1309. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1310.       ac_cache_corrupted=: ;;
  1311.     ,set)
  1312.       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1313. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1314.       ac_cache_corrupted=: ;;
  1315.     ,);;
  1316.     *)
  1317.       if test "x$ac_old_val" != "x$ac_new_val"; then
  1318.         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1319. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1320.         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1321. echo "$as_me:   former value:  $ac_old_val" >&2;}
  1322.         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1323. echo "$as_me:   current value: $ac_new_val" >&2;}
  1324.         ac_cache_corrupted=:
  1325.       fi;;
  1326.   esac
  1327.   # Pass precious variables to config.status.
  1328.   if test "$ac_new_set" = set; then
  1329.     case $ac_new_val in
  1330.     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1331.       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1332.     *) ac_arg=$ac_var=$ac_new_val ;;
  1333.     esac
  1334.     case " $ac_configure_args " in
  1335.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1336.       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1337.     esac
  1338.   fi
  1339. done
  1340. if $ac_cache_corrupted; then
  1341.   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1342. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1343.   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1344. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1345.    { (exit 1); exit 1; }; }
  1346. fi
  1347.  
  1348. ac_ext=c
  1349. ac_cpp='$CPP $CPPFLAGS'
  1350. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1351. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1352. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358.  
  1359.  
  1360.  
  1361.  
  1362.  
  1363.  
  1364.  
  1365.  
  1366.  
  1367.  
  1368.  
  1369.  
  1370.  
  1371.  
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379. ac_aux_dir=
  1380. for ac_dir in auto $srcdir/auto; do
  1381.   if test -f $ac_dir/install-sh; then
  1382.     ac_aux_dir=$ac_dir
  1383.     ac_install_sh="$ac_aux_dir/install-sh -c"
  1384.     break
  1385.   elif test -f $ac_dir/install.sh; then
  1386.     ac_aux_dir=$ac_dir
  1387.     ac_install_sh="$ac_aux_dir/install.sh -c"
  1388.     break
  1389.   elif test -f $ac_dir/shtool; then
  1390.     ac_aux_dir=$ac_dir
  1391.     ac_install_sh="$ac_aux_dir/shtool install -c"
  1392.     break
  1393.   fi
  1394. done
  1395. if test -z "$ac_aux_dir"; then
  1396.   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in auto $srcdir/auto" >&5
  1397. echo "$as_me: error: cannot find install-sh or install.sh in auto $srcdir/auto" >&2;}
  1398.    { (exit 1); exit 1; }; }
  1399. fi
  1400. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1401. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1402. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1403.  
  1404. # Find a good install program.  We prefer a C program (faster),
  1405. # so one script is as good as another.  But avoid the broken or
  1406. # incompatible versions:
  1407. # SysV /etc/install, /usr/sbin/install
  1408. # SunOS /usr/etc/install
  1409. # IRIX /sbin/install
  1410. # AIX /bin/install
  1411. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1412. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1413. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1414. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1415. # ./install, which can be erroneously created by make from ./install.sh.
  1416. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1417. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1418. if test -z "$INSTALL"; then
  1419. if test "${ac_cv_path_install+set}" = set; then
  1420.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1421. else
  1422.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1423. for as_dir in $PATH
  1424. do
  1425.   IFS=$as_save_IFS
  1426.   test -z "$as_dir" && as_dir=.
  1427.   # Account for people who put trailing slashes in PATH elements.
  1428. case $as_dir/ in
  1429.   ./ | .// | /cC/* | \
  1430.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1431.   /usr/ucb/* ) ;;
  1432.   *)
  1433.     # OSF1 and SCO ODT 3.0 have their own names for install.
  1434.     # Don't use installbsd from OSF since it installs stuff as root
  1435.     # by default.
  1436.     for ac_prog in ginstall scoinst install; do
  1437.       for ac_exec_ext in '' $ac_executable_extensions; do
  1438.         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1439.           if test $ac_prog = install &&
  1440.             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1441.             # AIX install.  It has an incompatible calling convention.
  1442.             :
  1443.           elif test $ac_prog = install &&
  1444.             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1445.             # program-specific install script used by HP pwplus--don't use.
  1446.             :
  1447.           else
  1448.             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1449.             break 3
  1450.           fi
  1451.         fi
  1452.       done
  1453.     done
  1454.     ;;
  1455. esac
  1456. done
  1457.  
  1458.  
  1459. fi
  1460.   if test "${ac_cv_path_install+set}" = set; then
  1461.     INSTALL=$ac_cv_path_install
  1462.   else
  1463.     # As a last resort, use the slow shell script.  We don't cache a
  1464.     # path for INSTALL within a source directory, because that will
  1465.     # break other packages using the cache if that directory is
  1466.     # removed, or if the path is relative.
  1467.     INSTALL=$ac_install_sh
  1468.   fi
  1469. fi
  1470. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1471. echo "${ECHO_T}$INSTALL" >&6
  1472.  
  1473. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1474. # It thinks the first close brace ends the variable substitution.
  1475. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1476.  
  1477. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1478.  
  1479. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1480.  
  1481. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1482. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1483. # Just in case
  1484. sleep 1
  1485. echo timestamp > conftestfile
  1486. # Do `set' in a subshell so we don't clobber the current shell's
  1487. # arguments.  Must try -L first in case configure is actually a
  1488. # symlink; some systems play weird games with the mod time of symlinks
  1489. # (eg FreeBSD returns the mod time of the symlink's containing
  1490. # directory).
  1491. if (
  1492.    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  1493.    if test "$*" = "X"; then
  1494.       # -L didn't work.
  1495.       set X `ls -t $srcdir/configure conftestfile`
  1496.    fi
  1497.    if test "$*" != "X $srcdir/configure conftestfile" \
  1498.       && test "$*" != "X conftestfile $srcdir/configure"; then
  1499.  
  1500.       # If neither matched, then we have a broken ls.  This can happen
  1501.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  1502.       # broken ls alias from the environment.  This has actually
  1503.       # happened.  Such a system could not be considered "sane".
  1504.       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  1505. alias in your environment" >&5
  1506. echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  1507. alias in your environment" >&2;}
  1508.    { (exit 1); exit 1; }; }
  1509.    fi
  1510.  
  1511.    test "$2" = conftestfile
  1512.    )
  1513. then
  1514.    # Ok.
  1515.    :
  1516. else
  1517.    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1518. Check your system clock" >&5
  1519. echo "$as_me: error: newly created file is older than distributed files!
  1520. Check your system clock" >&2;}
  1521.    { (exit 1); exit 1; }; }
  1522. fi
  1523. rm -f conftest*
  1524. echo "$as_me:$LINENO: result: yes" >&5
  1525. echo "${ECHO_T}yes" >&6
  1526. test "$program_prefix" != NONE &&
  1527.   program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1528. # Use a double $ so make ignores it.
  1529. test "$program_suffix" != NONE &&
  1530.   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1531. # Double any \ or $.  echo might interpret backslashes.
  1532. # By default was `s,x,x', remove it if useless.
  1533. cat <<\_ACEOF >conftest.sed
  1534. s/[\\$]/&&/g;s/;s,x,x,$//
  1535. _ACEOF
  1536. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1537. rm conftest.sed
  1538.  
  1539. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
  1540. echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
  1541. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  1542. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1543.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1544. else
  1545.   cat >conftest.make <<\_ACEOF
  1546. all:
  1547.     @echo 'ac_maketemp="${MAKE}"'
  1548. _ACEOF
  1549. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1550. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1551. if test -n "$ac_maketemp"; then
  1552.   eval ac_cv_prog_make_${ac_make}_set=yes
  1553. else
  1554.   eval ac_cv_prog_make_${ac_make}_set=no
  1555. fi
  1556. rm -f conftest.make
  1557. fi
  1558. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1559.   echo "$as_me:$LINENO: result: yes" >&5
  1560. echo "${ECHO_T}yes" >&6
  1561.   SET_MAKE=
  1562. else
  1563.   echo "$as_me:$LINENO: result: no" >&5
  1564. echo "${ECHO_T}no" >&6
  1565.   SET_MAKE="MAKE=${MAKE-make}"
  1566. fi
  1567.  
  1568.  
  1569. PACKAGE=stunnel
  1570.  
  1571. VERSION=4.04
  1572.  
  1573. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  1574.   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1575. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1576.    { (exit 1); exit 1; }; }
  1577. fi
  1578.  
  1579. cat >>confdefs.h <<_ACEOF
  1580. #define PACKAGE "$PACKAGE"
  1581. _ACEOF
  1582.  
  1583.  
  1584. cat >>confdefs.h <<_ACEOF
  1585. #define VERSION "$VERSION"
  1586. _ACEOF
  1587.  
  1588.  
  1589.  
  1590. missing_dir=`cd $ac_aux_dir && pwd`
  1591. echo "$as_me:$LINENO: checking for working aclocal" >&5
  1592. echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
  1593. # Run test in a subshell; some versions of sh will print an error if
  1594. # an executable is not found, even if stderr is redirected.
  1595. # Redirect stdin to placate older versions of autoconf.  Sigh.
  1596. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  1597.    ACLOCAL=aclocal
  1598.    echo "$as_me:$LINENO: result: found" >&5
  1599. echo "${ECHO_T}found" >&6
  1600. else
  1601.    ACLOCAL="$missing_dir/missing aclocal"
  1602.    echo "$as_me:$LINENO: result: missing" >&5
  1603. echo "${ECHO_T}missing" >&6
  1604. fi
  1605.  
  1606. echo "$as_me:$LINENO: checking for working autoconf" >&5
  1607. echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
  1608. # Run test in a subshell; some versions of sh will print an error if
  1609. # an executable is not found, even if stderr is redirected.
  1610. # Redirect stdin to placate older versions of autoconf.  Sigh.
  1611. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  1612.    AUTOCONF=autoconf
  1613.    echo "$as_me:$LINENO: result: found" >&5
  1614. echo "${ECHO_T}found" >&6
  1615. else
  1616.    AUTOCONF="$missing_dir/missing autoconf"
  1617.    echo "$as_me:$LINENO: result: missing" >&5
  1618. echo "${ECHO_T}missing" >&6
  1619. fi
  1620.  
  1621. echo "$as_me:$LINENO: checking for working automake" >&5
  1622. echo $ECHO_N "checking for working automake... $ECHO_C" >&6
  1623. # Run test in a subshell; some versions of sh will print an error if
  1624. # an executable is not found, even if stderr is redirected.
  1625. # Redirect stdin to placate older versions of autoconf.  Sigh.
  1626. if (automake --version) < /dev/null > /dev/null 2>&1; then
  1627.    AUTOMAKE=automake
  1628.    echo "$as_me:$LINENO: result: found" >&5
  1629. echo "${ECHO_T}found" >&6
  1630. else
  1631.    AUTOMAKE="$missing_dir/missing automake"
  1632.    echo "$as_me:$LINENO: result: missing" >&5
  1633. echo "${ECHO_T}missing" >&6
  1634. fi
  1635.  
  1636. echo "$as_me:$LINENO: checking for working autoheader" >&5
  1637. echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
  1638. # Run test in a subshell; some versions of sh will print an error if
  1639. # an executable is not found, even if stderr is redirected.
  1640. # Redirect stdin to placate older versions of autoconf.  Sigh.
  1641. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  1642.    AUTOHEADER=autoheader
  1643.    echo "$as_me:$LINENO: result: found" >&5
  1644. echo "${ECHO_T}found" >&6
  1645. else
  1646.    AUTOHEADER="$missing_dir/missing autoheader"
  1647.    echo "$as_me:$LINENO: result: missing" >&5
  1648. echo "${ECHO_T}missing" >&6
  1649. fi
  1650.  
  1651. echo "$as_me:$LINENO: checking for working makeinfo" >&5
  1652. echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
  1653. # Run test in a subshell; some versions of sh will print an error if
  1654. # an executable is not found, even if stderr is redirected.
  1655. # Redirect stdin to placate older versions of autoconf.  Sigh.
  1656. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  1657.    MAKEINFO=makeinfo
  1658.    echo "$as_me:$LINENO: result: found" >&5
  1659. echo "${ECHO_T}found" >&6
  1660. else
  1661.    MAKEINFO="$missing_dir/missing makeinfo"
  1662.    echo "$as_me:$LINENO: result: missing" >&5
  1663. echo "${ECHO_T}missing" >&6
  1664. fi
  1665.  
  1666.  
  1667.  
  1668.  
  1669. # Make sure we can run config.sub.
  1670. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1671.   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1672. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1673.    { (exit 1); exit 1; }; }
  1674.  
  1675. echo "$as_me:$LINENO: checking build system type" >&5
  1676. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1677. if test "${ac_cv_build+set}" = set; then
  1678.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1679. else
  1680.   ac_cv_build_alias=$build_alias
  1681. test -z "$ac_cv_build_alias" &&
  1682.   ac_cv_build_alias=`$ac_config_guess`
  1683. test -z "$ac_cv_build_alias" &&
  1684.   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1685. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1686.    { (exit 1); exit 1; }; }
  1687. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1688.   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1689. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1690.    { (exit 1); exit 1; }; }
  1691.  
  1692. fi
  1693. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1694. echo "${ECHO_T}$ac_cv_build" >&6
  1695. build=$ac_cv_build
  1696. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1697. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1698. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1699.  
  1700.  
  1701. echo "$as_me:$LINENO: checking host system type" >&5
  1702. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1703. if test "${ac_cv_host+set}" = set; then
  1704.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1705. else
  1706.   ac_cv_host_alias=$host_alias
  1707. test -z "$ac_cv_host_alias" &&
  1708.   ac_cv_host_alias=$ac_cv_build_alias
  1709. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1710.   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1711. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1712.    { (exit 1); exit 1; }; }
  1713.  
  1714. fi
  1715. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1716. echo "${ECHO_T}$ac_cv_host" >&6
  1717. host=$ac_cv_host
  1718. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1719. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1720. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1721.  
  1722.  
  1723. ac_ext=c
  1724. ac_cpp='$CPP $CPPFLAGS'
  1725. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1726. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1727. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1728. if test -n "$ac_tool_prefix"; then
  1729.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1730. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1731. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1732. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1733. if test "${ac_cv_prog_CC+set}" = set; then
  1734.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1735. else
  1736.   if test -n "$CC"; then
  1737.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1738. else
  1739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1740. for as_dir in $PATH
  1741. do
  1742.   IFS=$as_save_IFS
  1743.   test -z "$as_dir" && as_dir=.
  1744.   for ac_exec_ext in '' $ac_executable_extensions; do
  1745.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1746.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1747.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1748.     break 2
  1749.   fi
  1750. done
  1751. done
  1752.  
  1753. fi
  1754. fi
  1755. CC=$ac_cv_prog_CC
  1756. if test -n "$CC"; then
  1757.   echo "$as_me:$LINENO: result: $CC" >&5
  1758. echo "${ECHO_T}$CC" >&6
  1759. else
  1760.   echo "$as_me:$LINENO: result: no" >&5
  1761. echo "${ECHO_T}no" >&6
  1762. fi
  1763.  
  1764. fi
  1765. if test -z "$ac_cv_prog_CC"; then
  1766.   ac_ct_CC=$CC
  1767.   # Extract the first word of "gcc", so it can be a program name with args.
  1768. set dummy gcc; ac_word=$2
  1769. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1770. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1771. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1772.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1773. else
  1774.   if test -n "$ac_ct_CC"; then
  1775.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1776. else
  1777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1778. for as_dir in $PATH
  1779. do
  1780.   IFS=$as_save_IFS
  1781.   test -z "$as_dir" && as_dir=.
  1782.   for ac_exec_ext in '' $ac_executable_extensions; do
  1783.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1784.     ac_cv_prog_ac_ct_CC="gcc"
  1785.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1786.     break 2
  1787.   fi
  1788. done
  1789. done
  1790.  
  1791. fi
  1792. fi
  1793. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1794. if test -n "$ac_ct_CC"; then
  1795.   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1796. echo "${ECHO_T}$ac_ct_CC" >&6
  1797. else
  1798.   echo "$as_me:$LINENO: result: no" >&5
  1799. echo "${ECHO_T}no" >&6
  1800. fi
  1801.  
  1802.   CC=$ac_ct_CC
  1803. else
  1804.   CC="$ac_cv_prog_CC"
  1805. fi
  1806.  
  1807. if test -z "$CC"; then
  1808.   if test -n "$ac_tool_prefix"; then
  1809.   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1810. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1811. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1812. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1813. if test "${ac_cv_prog_CC+set}" = set; then
  1814.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1815. else
  1816.   if test -n "$CC"; then
  1817.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1818. else
  1819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1820. for as_dir in $PATH
  1821. do
  1822.   IFS=$as_save_IFS
  1823.   test -z "$as_dir" && as_dir=.
  1824.   for ac_exec_ext in '' $ac_executable_extensions; do
  1825.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1826.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  1827.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1828.     break 2
  1829.   fi
  1830. done
  1831. done
  1832.  
  1833. fi
  1834. fi
  1835. CC=$ac_cv_prog_CC
  1836. if test -n "$CC"; then
  1837.   echo "$as_me:$LINENO: result: $CC" >&5
  1838. echo "${ECHO_T}$CC" >&6
  1839. else
  1840.   echo "$as_me:$LINENO: result: no" >&5
  1841. echo "${ECHO_T}no" >&6
  1842. fi
  1843.  
  1844. fi
  1845. if test -z "$ac_cv_prog_CC"; then
  1846.   ac_ct_CC=$CC
  1847.   # Extract the first word of "cc", so it can be a program name with args.
  1848. set dummy cc; ac_word=$2
  1849. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1850. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1851. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1852.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1853. else
  1854.   if test -n "$ac_ct_CC"; then
  1855.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1856. else
  1857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1858. for as_dir in $PATH
  1859. do
  1860.   IFS=$as_save_IFS
  1861.   test -z "$as_dir" && as_dir=.
  1862.   for ac_exec_ext in '' $ac_executable_extensions; do
  1863.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1864.     ac_cv_prog_ac_ct_CC="cc"
  1865.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1866.     break 2
  1867.   fi
  1868. done
  1869. done
  1870.  
  1871. fi
  1872. fi
  1873. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1874. if test -n "$ac_ct_CC"; then
  1875.   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1876. echo "${ECHO_T}$ac_ct_CC" >&6
  1877. else
  1878.   echo "$as_me:$LINENO: result: no" >&5
  1879. echo "${ECHO_T}no" >&6
  1880. fi
  1881.  
  1882.   CC=$ac_ct_CC
  1883. else
  1884.   CC="$ac_cv_prog_CC"
  1885. fi
  1886.  
  1887. fi
  1888. if test -z "$CC"; then
  1889.   # Extract the first word of "cc", so it can be a program name with args.
  1890. set dummy cc; ac_word=$2
  1891. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1892. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1893. if test "${ac_cv_prog_CC+set}" = set; then
  1894.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1895. else
  1896.   if test -n "$CC"; then
  1897.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1898. else
  1899.   ac_prog_rejected=no
  1900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1901. for as_dir in $PATH
  1902. do
  1903.   IFS=$as_save_IFS
  1904.   test -z "$as_dir" && as_dir=.
  1905.   for ac_exec_ext in '' $ac_executable_extensions; do
  1906.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1907.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1908.        ac_prog_rejected=yes
  1909.        continue
  1910.      fi
  1911.     ac_cv_prog_CC="cc"
  1912.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1913.     break 2
  1914.   fi
  1915. done
  1916. done
  1917.  
  1918. if test $ac_prog_rejected = yes; then
  1919.   # We found a bogon in the path, so make sure we never use it.
  1920.   set dummy $ac_cv_prog_CC
  1921.   shift
  1922.   if test $# != 0; then
  1923.     # We chose a different compiler from the bogus one.
  1924.     # However, it has the same basename, so the bogon will be chosen
  1925.     # first if we set CC to just the basename; use the full file name.
  1926.     shift
  1927.     set dummy "$as_dir/$ac_word" ${1+"$@"}
  1928.     shift
  1929.     ac_cv_prog_CC="$@"
  1930.   fi
  1931. fi
  1932. fi
  1933. fi
  1934. CC=$ac_cv_prog_CC
  1935. if test -n "$CC"; then
  1936.   echo "$as_me:$LINENO: result: $CC" >&5
  1937. echo "${ECHO_T}$CC" >&6
  1938. else
  1939.   echo "$as_me:$LINENO: result: no" >&5
  1940. echo "${ECHO_T}no" >&6
  1941. fi
  1942.  
  1943. fi
  1944. if test -z "$CC"; then
  1945.   if test -n "$ac_tool_prefix"; then
  1946.   for ac_prog in cl
  1947.   do
  1948.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1949. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1950. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1951. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1952. if test "${ac_cv_prog_CC+set}" = set; then
  1953.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1954. else
  1955.   if test -n "$CC"; then
  1956.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1957. else
  1958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1959. for as_dir in $PATH
  1960. do
  1961.   IFS=$as_save_IFS
  1962.   test -z "$as_dir" && as_dir=.
  1963.   for ac_exec_ext in '' $ac_executable_extensions; do
  1964.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1965.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1966.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1967.     break 2
  1968.   fi
  1969. done
  1970. done
  1971.  
  1972. fi
  1973. fi
  1974. CC=$ac_cv_prog_CC
  1975. if test -n "$CC"; then
  1976.   echo "$as_me:$LINENO: result: $CC" >&5
  1977. echo "${ECHO_T}$CC" >&6
  1978. else
  1979.   echo "$as_me:$LINENO: result: no" >&5
  1980. echo "${ECHO_T}no" >&6
  1981. fi
  1982.  
  1983.     test -n "$CC" && break
  1984.   done
  1985. fi
  1986. if test -z "$CC"; then
  1987.   ac_ct_CC=$CC
  1988.   for ac_prog in cl
  1989. do
  1990.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  1991. set dummy $ac_prog; ac_word=$2
  1992. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1993. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1994. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1995.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1996. else
  1997.   if test -n "$ac_ct_CC"; then
  1998.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1999. else
  2000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2001. for as_dir in $PATH
  2002. do
  2003.   IFS=$as_save_IFS
  2004.   test -z "$as_dir" && as_dir=.
  2005.   for ac_exec_ext in '' $ac_executable_extensions; do
  2006.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2007.     ac_cv_prog_ac_ct_CC="$ac_prog"
  2008.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2009.     break 2
  2010.   fi
  2011. done
  2012. done
  2013.  
  2014. fi
  2015. fi
  2016. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2017. if test -n "$ac_ct_CC"; then
  2018.   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2019. echo "${ECHO_T}$ac_ct_CC" >&6
  2020. else
  2021.   echo "$as_me:$LINENO: result: no" >&5
  2022. echo "${ECHO_T}no" >&6
  2023. fi
  2024.  
  2025.   test -n "$ac_ct_CC" && break
  2026. done
  2027.  
  2028.   CC=$ac_ct_CC
  2029. fi
  2030.  
  2031. fi
  2032.  
  2033.  
  2034. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
  2035. echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
  2036.    { (exit 1); exit 1; }; }
  2037.  
  2038. # Provide some information about the compiler.
  2039. echo "$as_me:$LINENO:" \
  2040.      "checking for C compiler version" >&5
  2041. ac_compiler=`set X $ac_compile; echo $2`
  2042. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2043.   (eval $ac_compiler --version </dev/null >&5) 2>&5
  2044.   ac_status=$?
  2045.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2046.   (exit $ac_status); }
  2047. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2048.   (eval $ac_compiler -v </dev/null >&5) 2>&5
  2049.   ac_status=$?
  2050.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2051.   (exit $ac_status); }
  2052. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2053.   (eval $ac_compiler -V </dev/null >&5) 2>&5
  2054.   ac_status=$?
  2055.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2056.   (exit $ac_status); }
  2057.  
  2058. cat >conftest.$ac_ext <<_ACEOF
  2059. #line $LINENO "configure"
  2060. #include "confdefs.h"
  2061.  
  2062. #ifdef F77_DUMMY_MAIN
  2063. #  ifdef __cplusplus
  2064.      extern "C"
  2065. #  endif
  2066.    int F77_DUMMY_MAIN() { return 1; }
  2067. #endif
  2068. int
  2069. main ()
  2070. {
  2071.  
  2072.   ;
  2073.   return 0;
  2074. }
  2075. _ACEOF
  2076. ac_clean_files_save=$ac_clean_files
  2077. ac_clean_files="$ac_clean_files a.out a.exe"
  2078. # Try to create an executable without -o first, disregard a.out.
  2079. # It will help us diagnose broken compilers, and finding out an intuition
  2080. # of exeext.
  2081. echo "$as_me:$LINENO: checking for C compiler default output" >&5
  2082. echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  2083. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2084. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2085.   (eval $ac_link_default) 2>&5
  2086.   ac_status=$?
  2087.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2088.   (exit $ac_status); }; then
  2089.   # Find the output, starting from the most likely.  This scheme is
  2090. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2091. # resort.
  2092.  
  2093. # Be careful to initialize this variable, since it used to be cached.
  2094. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2095. ac_cv_exeext=
  2096. for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
  2097.                 ls a.out conftest 2>/dev/null;
  2098.                 ls a.* conftest.* 2>/dev/null`; do
  2099.   case $ac_file in
  2100.     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
  2101.     a.out ) # We found the default executable, but exeext='' is most
  2102.             # certainly right.
  2103.             break;;
  2104.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2105.           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
  2106.           export ac_cv_exeext
  2107.           break;;
  2108.     * ) break;;
  2109.   esac
  2110. done
  2111. else
  2112.   echo "$as_me: failed program was:" >&5
  2113. cat conftest.$ac_ext >&5
  2114. { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
  2115. echo "$as_me: error: C compiler cannot create executables" >&2;}
  2116.    { (exit 77); exit 77; }; }
  2117. fi
  2118.  
  2119. ac_exeext=$ac_cv_exeext
  2120. echo "$as_me:$LINENO: result: $ac_file" >&5
  2121. echo "${ECHO_T}$ac_file" >&6
  2122.  
  2123. # Check the compiler produces executables we can run.  If not, either
  2124. # the compiler is broken, or we cross compile.
  2125. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2126. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2127. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2128. # If not cross compiling, check that we can run a simple program.
  2129. if test "$cross_compiling" != yes; then
  2130.   if { ac_try='./$ac_file'
  2131.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2132.   (eval $ac_try) 2>&5
  2133.   ac_status=$?
  2134.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2135.   (exit $ac_status); }; }; then
  2136.     cross_compiling=no
  2137.   else
  2138.     if test "$cross_compiling" = maybe; then
  2139.     cross_compiling=yes
  2140.     else
  2141.     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2142. If you meant to cross compile, use \`--host'." >&5
  2143. echo "$as_me: error: cannot run C compiled programs.
  2144. If you meant to cross compile, use \`--host'." >&2;}
  2145.    { (exit 1); exit 1; }; }
  2146.     fi
  2147.   fi
  2148. fi
  2149. echo "$as_me:$LINENO: result: yes" >&5
  2150. echo "${ECHO_T}yes" >&6
  2151.  
  2152. rm -f a.out a.exe conftest$ac_cv_exeext
  2153. ac_clean_files=$ac_clean_files_save
  2154. # Check the compiler produces executables we can run.  If not, either
  2155. # the compiler is broken, or we cross compile.
  2156. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2157. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2158. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2159. echo "${ECHO_T}$cross_compiling" >&6
  2160.  
  2161. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2162. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2163. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2164.   (eval $ac_link) 2>&5
  2165.   ac_status=$?
  2166.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2167.   (exit $ac_status); }; then
  2168.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2169. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2170. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2171. # `rm'.
  2172. for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  2173.   case $ac_file in
  2174.     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  2175.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2176.           export ac_cv_exeext
  2177.           break;;
  2178.     * ) break;;
  2179.   esac
  2180. done
  2181. else
  2182.   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
  2183. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
  2184.    { (exit 1); exit 1; }; }
  2185. fi
  2186.  
  2187. rm -f conftest$ac_cv_exeext
  2188. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2189. echo "${ECHO_T}$ac_cv_exeext" >&6
  2190.  
  2191. rm -f conftest.$ac_ext
  2192. EXEEXT=$ac_cv_exeext
  2193. ac_exeext=$EXEEXT
  2194. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2195. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2196. if test "${ac_cv_objext+set}" = set; then
  2197.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2198. else
  2199.   cat >conftest.$ac_ext <<_ACEOF
  2200. #line $LINENO "configure"
  2201. #include "confdefs.h"
  2202.  
  2203. #ifdef F77_DUMMY_MAIN
  2204. #  ifdef __cplusplus
  2205.      extern "C"
  2206. #  endif
  2207.    int F77_DUMMY_MAIN() { return 1; }
  2208. #endif
  2209. int
  2210. main ()
  2211. {
  2212.  
  2213.   ;
  2214.   return 0;
  2215. }
  2216. _ACEOF
  2217. rm -f conftest.o conftest.obj
  2218. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2219.   (eval $ac_compile) 2>&5
  2220.   ac_status=$?
  2221.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2222.   (exit $ac_status); }; then
  2223.   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2224.   case $ac_file in
  2225.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
  2226.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2227.        break;;
  2228.   esac
  2229. done
  2230. else
  2231.   echo "$as_me: failed program was:" >&5
  2232. cat conftest.$ac_ext >&5
  2233. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
  2234. echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
  2235.    { (exit 1); exit 1; }; }
  2236. fi
  2237.  
  2238. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2239. fi
  2240. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2241. echo "${ECHO_T}$ac_cv_objext" >&6
  2242. OBJEXT=$ac_cv_objext
  2243. ac_objext=$OBJEXT
  2244. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2245. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2246. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2247.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2248. else
  2249.   cat >conftest.$ac_ext <<_ACEOF
  2250. #line $LINENO "configure"
  2251. #include "confdefs.h"
  2252.  
  2253. #ifdef F77_DUMMY_MAIN
  2254. #  ifdef __cplusplus
  2255.      extern "C"
  2256. #  endif
  2257.    int F77_DUMMY_MAIN() { return 1; }
  2258. #endif
  2259. int
  2260. main ()
  2261. {
  2262. #ifndef __GNUC__
  2263.        choke me
  2264. #endif
  2265.  
  2266.   ;
  2267.   return 0;
  2268. }
  2269. _ACEOF
  2270. rm -f conftest.$ac_objext
  2271. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2272.   (eval $ac_compile) 2>&5
  2273.   ac_status=$?
  2274.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2275.   (exit $ac_status); } &&
  2276.          { ac_try='test -s conftest.$ac_objext'
  2277.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2278.   (eval $ac_try) 2>&5
  2279.   ac_status=$?
  2280.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2281.   (exit $ac_status); }; }; then
  2282.   ac_compiler_gnu=yes
  2283. else
  2284.   echo "$as_me: failed program was:" >&5
  2285. cat conftest.$ac_ext >&5
  2286. ac_compiler_gnu=no
  2287. fi
  2288. rm -f conftest.$ac_objext conftest.$ac_ext
  2289. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2290.  
  2291. fi
  2292. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2293. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2294. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2295. ac_test_CFLAGS=${CFLAGS+set}
  2296. ac_save_CFLAGS=$CFLAGS
  2297. CFLAGS="-g"
  2298. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2299. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2300. if test "${ac_cv_prog_cc_g+set}" = set; then
  2301.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2302. else
  2303.   cat >conftest.$ac_ext <<_ACEOF
  2304. #line $LINENO "configure"
  2305. #include "confdefs.h"
  2306.  
  2307. #ifdef F77_DUMMY_MAIN
  2308. #  ifdef __cplusplus
  2309.      extern "C"
  2310. #  endif
  2311.    int F77_DUMMY_MAIN() { return 1; }
  2312. #endif
  2313. int
  2314. main ()
  2315. {
  2316.  
  2317.   ;
  2318.   return 0;
  2319. }
  2320. _ACEOF
  2321. rm -f conftest.$ac_objext
  2322. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2323.   (eval $ac_compile) 2>&5
  2324.   ac_status=$?
  2325.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2326.   (exit $ac_status); } &&
  2327.          { ac_try='test -s conftest.$ac_objext'
  2328.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2329.   (eval $ac_try) 2>&5
  2330.   ac_status=$?
  2331.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2332.   (exit $ac_status); }; }; then
  2333.   ac_cv_prog_cc_g=yes
  2334. else
  2335.   echo "$as_me: failed program was:" >&5
  2336. cat conftest.$ac_ext >&5
  2337. ac_cv_prog_cc_g=no
  2338. fi
  2339. rm -f conftest.$ac_objext conftest.$ac_ext
  2340. fi
  2341. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2342. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2343. if test "$ac_test_CFLAGS" = set; then
  2344.   CFLAGS=$ac_save_CFLAGS
  2345. elif test $ac_cv_prog_cc_g = yes; then
  2346.   if test "$GCC" = yes; then
  2347.     CFLAGS="-g -O2"
  2348.   else
  2349.     CFLAGS="-g"
  2350.   fi
  2351. else
  2352.   if test "$GCC" = yes; then
  2353.     CFLAGS="-O2"
  2354.   else
  2355.     CFLAGS=
  2356.   fi
  2357. fi
  2358. # Some people use a C++ compiler to compile C.  Since we use `exit',
  2359. # in C++ we need to declare it.  In case someone uses the same compiler
  2360. # for both compiling C and C++ we need to have the C++ compiler decide
  2361. # the declaration of exit, since it's the most demanding environment.
  2362. cat >conftest.$ac_ext <<_ACEOF
  2363. #ifndef __cplusplus
  2364.   choke me
  2365. #endif
  2366. _ACEOF
  2367. rm -f conftest.$ac_objext
  2368. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2369.   (eval $ac_compile) 2>&5
  2370.   ac_status=$?
  2371.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2372.   (exit $ac_status); } &&
  2373.          { ac_try='test -s conftest.$ac_objext'
  2374.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2375.   (eval $ac_try) 2>&5
  2376.   ac_status=$?
  2377.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2378.   (exit $ac_status); }; }; then
  2379.   for ac_declaration in \
  2380.    ''\
  2381.    '#include <stdlib.h>' \
  2382.    'extern "C" void std::exit (int) throw (); using std::exit;' \
  2383.    'extern "C" void std::exit (int); using std::exit;' \
  2384.    'extern "C" void exit (int) throw ();' \
  2385.    'extern "C" void exit (int);' \
  2386.    'void exit (int);'
  2387. do
  2388.   cat >conftest.$ac_ext <<_ACEOF
  2389. #line $LINENO "configure"
  2390. #include "confdefs.h"
  2391. #include <stdlib.h>
  2392. $ac_declaration
  2393. #ifdef F77_DUMMY_MAIN
  2394. #  ifdef __cplusplus
  2395.      extern "C"
  2396. #  endif
  2397.    int F77_DUMMY_MAIN() { return 1; }
  2398. #endif
  2399. int
  2400. main ()
  2401. {
  2402. exit (42);
  2403.   ;
  2404.   return 0;
  2405. }
  2406. _ACEOF
  2407. rm -f conftest.$ac_objext
  2408. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2409.   (eval $ac_compile) 2>&5
  2410.   ac_status=$?
  2411.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2412.   (exit $ac_status); } &&
  2413.          { ac_try='test -s conftest.$ac_objext'
  2414.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2415.   (eval $ac_try) 2>&5
  2416.   ac_status=$?
  2417.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2418.   (exit $ac_status); }; }; then
  2419.   :
  2420. else
  2421.   echo "$as_me: failed program was:" >&5
  2422. cat conftest.$ac_ext >&5
  2423. continue
  2424. fi
  2425. rm -f conftest.$ac_objext conftest.$ac_ext
  2426.   cat >conftest.$ac_ext <<_ACEOF
  2427. #line $LINENO "configure"
  2428. #include "confdefs.h"
  2429. $ac_declaration
  2430. #ifdef F77_DUMMY_MAIN
  2431. #  ifdef __cplusplus
  2432.      extern "C"
  2433. #  endif
  2434.    int F77_DUMMY_MAIN() { return 1; }
  2435. #endif
  2436. int
  2437. main ()
  2438. {
  2439. exit (42);
  2440.   ;
  2441.   return 0;
  2442. }
  2443. _ACEOF
  2444. rm -f conftest.$ac_objext
  2445. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2446.   (eval $ac_compile) 2>&5
  2447.   ac_status=$?
  2448.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2449.   (exit $ac_status); } &&
  2450.          { ac_try='test -s conftest.$ac_objext'
  2451.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2452.   (eval $ac_try) 2>&5
  2453.   ac_status=$?
  2454.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2455.   (exit $ac_status); }; }; then
  2456.   break
  2457. else
  2458.   echo "$as_me: failed program was:" >&5
  2459. cat conftest.$ac_ext >&5
  2460. fi
  2461. rm -f conftest.$ac_objext conftest.$ac_ext
  2462. done
  2463. rm -f conftest*
  2464. if test -n "$ac_declaration"; then
  2465.   echo '#ifdef __cplusplus' >>confdefs.h
  2466.   echo $ac_declaration      >>confdefs.h
  2467.   echo '#endif'             >>confdefs.h
  2468. fi
  2469.  
  2470. else
  2471.   echo "$as_me: failed program was:" >&5
  2472. cat conftest.$ac_ext >&5
  2473. fi
  2474. rm -f conftest.$ac_objext conftest.$ac_ext
  2475. ac_ext=c
  2476. ac_cpp='$CPP $CPPFLAGS'
  2477. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2478. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2479. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2480.  
  2481. if test "$GCC" = "yes"; then
  2482. CFLAGS="$CFLAGS -Wall -Wshadow -Wcast-align -Wpointer-arith"
  2483. fi
  2484. # Find a good install program.  We prefer a C program (faster),
  2485. # so one script is as good as another.  But avoid the broken or
  2486. # incompatible versions:
  2487. # SysV /etc/install, /usr/sbin/install
  2488. # SunOS /usr/etc/install
  2489. # IRIX /sbin/install
  2490. # AIX /bin/install
  2491. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2492. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2493. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2494. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2495. # ./install, which can be erroneously created by make from ./install.sh.
  2496. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2497. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  2498. if test -z "$INSTALL"; then
  2499. if test "${ac_cv_path_install+set}" = set; then
  2500.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2501. else
  2502.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2503. for as_dir in $PATH
  2504. do
  2505.   IFS=$as_save_IFS
  2506.   test -z "$as_dir" && as_dir=.
  2507.   # Account for people who put trailing slashes in PATH elements.
  2508. case $as_dir/ in
  2509.   ./ | .// | /cC/* | \
  2510.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2511.   /usr/ucb/* ) ;;
  2512.   *)
  2513.     # OSF1 and SCO ODT 3.0 have their own names for install.
  2514.     # Don't use installbsd from OSF since it installs stuff as root
  2515.     # by default.
  2516.     for ac_prog in ginstall scoinst install; do
  2517.       for ac_exec_ext in '' $ac_executable_extensions; do
  2518.         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2519.           if test $ac_prog = install &&
  2520.             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2521.             # AIX install.  It has an incompatible calling convention.
  2522.             :
  2523.           elif test $ac_prog = install &&
  2524.             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2525.             # program-specific install script used by HP pwplus--don't use.
  2526.             :
  2527.           else
  2528.             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2529.             break 3
  2530.           fi
  2531.         fi
  2532.       done
  2533.     done
  2534.     ;;
  2535. esac
  2536. done
  2537.  
  2538.  
  2539. fi
  2540.   if test "${ac_cv_path_install+set}" = set; then
  2541.     INSTALL=$ac_cv_path_install
  2542.   else
  2543.     # As a last resort, use the slow shell script.  We don't cache a
  2544.     # path for INSTALL within a source directory, because that will
  2545.     # break other packages using the cache if that directory is
  2546.     # removed, or if the path is relative.
  2547.     INSTALL=$ac_install_sh
  2548.   fi
  2549. fi
  2550. echo "$as_me:$LINENO: result: $INSTALL" >&5
  2551. echo "${ECHO_T}$INSTALL" >&6
  2552.  
  2553. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2554. # It thinks the first close brace ends the variable substitution.
  2555. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2556.  
  2557. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2558.  
  2559. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2560.  
  2561. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
  2562. echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
  2563. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  2564. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2565.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2566. else
  2567.   cat >conftest.make <<\_ACEOF
  2568. all:
  2569.     @echo 'ac_maketemp="${MAKE}"'
  2570. _ACEOF
  2571. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2572. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2573. if test -n "$ac_maketemp"; then
  2574.   eval ac_cv_prog_make_${ac_make}_set=yes
  2575. else
  2576.   eval ac_cv_prog_make_${ac_make}_set=no
  2577. fi
  2578. rm -f conftest.make
  2579. fi
  2580. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2581.   echo "$as_me:$LINENO: result: yes" >&5
  2582. echo "${ECHO_T}yes" >&6
  2583.   SET_MAKE=
  2584. else
  2585.   echo "$as_me:$LINENO: result: no" >&5
  2586. echo "${ECHO_T}no" >&6
  2587.   SET_MAKE="MAKE=${MAKE-make}"
  2588. fi
  2589.  
  2590. # Check whether --enable-static or --disable-static was given.
  2591. if test "${enable_static+set}" = set; then
  2592.   enableval="$enable_static"
  2593.   p=${PACKAGE-default}
  2594. case $enableval in
  2595. yes) enable_static=yes ;;
  2596. no) enable_static=no ;;
  2597. *)
  2598.   enable_static=no
  2599.   # Look at the argument we got.  We use all the common list separators.
  2600.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  2601.   for pkg in $enableval; do
  2602.     if test "X$pkg" = "X$p"; then
  2603.       enable_static=yes
  2604.     fi
  2605.   done
  2606.   IFS="$ac_save_ifs"
  2607.   ;;
  2608. esac
  2609. else
  2610.   enable_static=no
  2611. fi;
  2612. # Check whether --enable-shared or --disable-shared was given.
  2613. if test "${enable_shared+set}" = set; then
  2614.   enableval="$enable_shared"
  2615.   p=${PACKAGE-default}
  2616. case $enableval in
  2617. yes) enable_shared=yes ;;
  2618. no) enable_shared=no ;;
  2619. *)
  2620.   enable_shared=no
  2621.   # Look at the argument we got.  We use all the common list separators.
  2622.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  2623.   for pkg in $enableval; do
  2624.     if test "X$pkg" = "X$p"; then
  2625.       enable_shared=yes
  2626.     fi
  2627.   done
  2628.   IFS="$ac_save_ifs"
  2629.   ;;
  2630. esac
  2631. else
  2632.   enable_shared=yes
  2633. fi;
  2634. # Check whether --enable-fast-install or --disable-fast-install was given.
  2635. if test "${enable_fast_install+set}" = set; then
  2636.   enableval="$enable_fast_install"
  2637.   p=${PACKAGE-default}
  2638. case $enableval in
  2639. yes) enable_fast_install=yes ;;
  2640. no) enable_fast_install=no ;;
  2641. *)
  2642.   enable_fast_install=no
  2643.   # Look at the argument we got.  We use all the common list separators.
  2644.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  2645.   for pkg in $enableval; do
  2646.     if test "X$pkg" = "X$p"; then
  2647.       enable_fast_install=yes
  2648.     fi
  2649.   done
  2650.   IFS="$ac_save_ifs"
  2651.   ;;
  2652. esac
  2653. else
  2654.   enable_fast_install=yes
  2655. fi;
  2656. # Find the correct PATH separator.  Usually this is `:', but
  2657. # DJGPP uses `;' like DOS.
  2658. if test "X${PATH_SEPARATOR+set}" != Xset; then
  2659.   UNAME=${UNAME-`uname 2>/dev/null`}
  2660.   case X$UNAME in
  2661.     *-DOS) lt_cv_sys_path_separator=';' ;;
  2662.     *)     lt_cv_sys_path_separator=':' ;;
  2663.   esac
  2664.   PATH_SEPARATOR=$lt_cv_sys_path_separator
  2665. fi
  2666.  
  2667.  
  2668. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  2669. if test "${with_gnu_ld+set}" = set; then
  2670.   withval="$with_gnu_ld"
  2671.   test "$withval" = no || with_gnu_ld=yes
  2672. else
  2673.   with_gnu_ld=no
  2674. fi;
  2675. ac_prog=ld
  2676. if test "$GCC" = yes; then
  2677.   # Check if gcc -print-prog-name=ld gives a path.
  2678.   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  2679. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  2680.   case $host in
  2681.   *-*-mingw*)
  2682.     # gcc leaves a trailing carriage return which upsets mingw
  2683.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2684.   *)
  2685.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2686.   esac
  2687.   case $ac_prog in
  2688.     # Accept absolute paths.
  2689.     [\\/]* | [A-Za-z]:[\\/]*)
  2690.       re_direlt='/[^/][^/]*/\.\./'
  2691.       # Canonicalize the path of ld
  2692.       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  2693.       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2694.     ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  2695.       done
  2696.       test -z "$LD" && LD="$ac_prog"
  2697.       ;;
  2698.   "")
  2699.     # If it fails, then pretend we aren't using GCC.
  2700.     ac_prog=ld
  2701.     ;;
  2702.   *)
  2703.     # If it is relative, then search for the first ld in PATH.
  2704.     with_gnu_ld=unknown
  2705.     ;;
  2706.   esac
  2707. elif test "$with_gnu_ld" = yes; then
  2708.   echo "$as_me:$LINENO: checking for GNU ld" >&5
  2709. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  2710. else
  2711.   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  2712. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  2713. fi
  2714. if test "${lt_cv_path_LD+set}" = set; then
  2715.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2716. else
  2717.   if test -z "$LD"; then
  2718.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2719.   for ac_dir in $PATH; do
  2720.     test -z "$ac_dir" && ac_dir=.
  2721.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2722.       lt_cv_path_LD="$ac_dir/$ac_prog"
  2723.       # Check to see if the program is GNU ld.  I'd rather use --version,
  2724.       # but apparently some GNU ld's only accept -v.
  2725.       # Break only if it was the GNU/non-GNU ld that we prefer.
  2726.       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  2727.     test "$with_gnu_ld" != no && break
  2728.       else
  2729.     test "$with_gnu_ld" != yes && break
  2730.       fi
  2731.     fi
  2732.   done
  2733.   IFS="$ac_save_ifs"
  2734. else
  2735.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2736. fi
  2737. fi
  2738.  
  2739. LD="$lt_cv_path_LD"
  2740. if test -n "$LD"; then
  2741.   echo "$as_me:$LINENO: result: $LD" >&5
  2742. echo "${ECHO_T}$LD" >&6
  2743. else
  2744.   echo "$as_me:$LINENO: result: no" >&5
  2745. echo "${ECHO_T}no" >&6
  2746. fi
  2747. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  2748. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  2749.    { (exit 1); exit 1; }; }
  2750. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  2751. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  2752. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  2753.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2754. else
  2755.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  2756. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  2757.   lt_cv_prog_gnu_ld=yes
  2758. else
  2759.   lt_cv_prog_gnu_ld=no
  2760. fi
  2761. fi
  2762. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  2763. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  2764. with_gnu_ld=$lt_cv_prog_gnu_ld
  2765.  
  2766.  
  2767. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  2768. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  2769. if test "${lt_cv_ld_reload_flag+set}" = set; then
  2770.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2771. else
  2772.   lt_cv_ld_reload_flag='-r'
  2773. fi
  2774. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  2775. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  2776. reload_flag=$lt_cv_ld_reload_flag
  2777. test -n "$reload_flag" && reload_flag=" $reload_flag"
  2778.  
  2779. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  2780. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  2781. if test "${lt_cv_path_NM+set}" = set; then
  2782.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2783. else
  2784.   if test -n "$NM"; then
  2785.   # Let the user override the test.
  2786.   lt_cv_path_NM="$NM"
  2787. else
  2788.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2789.   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  2790.     test -z "$ac_dir" && ac_dir=.
  2791.     tmp_nm=$ac_dir/${ac_tool_prefix}nm
  2792.     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  2793.       # Check to see if the nm accepts a BSD-compat flag.
  2794.       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2795.       #   nm: unknown option "B" ignored
  2796.       # Tru64's nm complains that /dev/null is an invalid object file
  2797.       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  2798.     lt_cv_path_NM="$tmp_nm -B"
  2799.     break
  2800.       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  2801.     lt_cv_path_NM="$tmp_nm -p"
  2802.     break
  2803.       else
  2804.     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2805.     continue # so that we can try to find one that supports BSD flags
  2806.       fi
  2807.     fi
  2808.   done
  2809.   IFS="$ac_save_ifs"
  2810.   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2811. fi
  2812. fi
  2813.  
  2814. NM="$lt_cv_path_NM"
  2815. echo "$as_me:$LINENO: result: $NM" >&5
  2816. echo "${ECHO_T}$NM" >&6
  2817.  
  2818. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  2819. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  2820. LN_S=$as_ln_s
  2821. if test "$LN_S" = "ln -s"; then
  2822.   echo "$as_me:$LINENO: result: yes" >&5
  2823. echo "${ECHO_T}yes" >&6
  2824. else
  2825.   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  2826. echo "${ECHO_T}no, using $LN_S" >&6
  2827. fi
  2828.  
  2829. echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
  2830. echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
  2831. if test "${lt_cv_deplibs_check_method+set}" = set; then
  2832.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2833. else
  2834.   lt_cv_file_magic_cmd='$MAGIC_CMD'
  2835. lt_cv_file_magic_test_file=
  2836. lt_cv_deplibs_check_method='unknown'
  2837. # Need to set the preceding variable on all platforms that support
  2838. # interlibrary dependencies.
  2839. # 'none' -- dependencies not supported.
  2840. # `unknown' -- same as none, but documents that we really don't know.
  2841. # 'pass_all' -- all dependencies passed with no checks.
  2842. # 'test_compile' -- check by making test program.
  2843. # 'file_magic [[regex]]' -- check by looking for files in library path
  2844. # which responds to the $file_magic_cmd with a given egrep regex.
  2845. # If you have `file' or equivalent on your system and you're not sure
  2846. # whether `pass_all' will *always* work, you probably want this one.
  2847.  
  2848. case $host_os in
  2849. aix4* | aix5*)
  2850.   lt_cv_deplibs_check_method=pass_all
  2851.   ;;
  2852.  
  2853. beos*)
  2854.   lt_cv_deplibs_check_method=pass_all
  2855.   ;;
  2856.  
  2857. bsdi4*)
  2858.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  2859.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  2860.   lt_cv_file_magic_test_file=/shlib/libc.so
  2861.   ;;
  2862.  
  2863. cygwin* | mingw* | pw32*)
  2864.   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2865.   lt_cv_file_magic_cmd='$OBJDUMP -f'
  2866.   ;;
  2867.  
  2868. darwin* | rhapsody*)
  2869.   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  2870.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  2871.   case "$host_os" in
  2872.   rhapsody* | darwin1.[012])
  2873.     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  2874.     ;;
  2875.   *) # Darwin 1.3 on
  2876.     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  2877.     ;;
  2878.   esac
  2879.   ;;
  2880.  
  2881. freebsd*)
  2882.   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2883.     case $host_cpu in
  2884.     i*86 )
  2885.       # Not sure whether the presence of OpenBSD here was a mistake.
  2886.       # Let's accept both of them until this is cleared up.
  2887.       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  2888.       lt_cv_file_magic_cmd=/usr/bin/file
  2889.       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2890.       ;;
  2891.     esac
  2892.   else
  2893.     lt_cv_deplibs_check_method=pass_all
  2894.   fi
  2895.   ;;
  2896.  
  2897. gnu*)
  2898.   lt_cv_deplibs_check_method=pass_all
  2899.   ;;
  2900.  
  2901. hpux10.20*|hpux11*)
  2902.   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  2903.   lt_cv_file_magic_cmd=/usr/bin/file
  2904.   lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2905.   ;;
  2906.  
  2907. irix5* | irix6* | nonstopux*)
  2908.   case $host_os in
  2909.   irix5* | nonstopux*)
  2910.     # this will be overridden with pass_all, but let us keep it just in case
  2911.     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  2912.     ;;
  2913.   *)
  2914.     case $LD in
  2915.     *-32|*"-32 ") libmagic=32-bit;;
  2916.     *-n32|*"-n32 ") libmagic=N32;;
  2917.     *-64|*"-64 ") libmagic=64-bit;;
  2918.     *) libmagic=never-match;;
  2919.     esac
  2920.     # this will be overridden with pass_all, but let us keep it just in case
  2921.     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  2922.     ;;
  2923.   esac
  2924.   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  2925.   lt_cv_deplibs_check_method=pass_all
  2926.   ;;
  2927.  
  2928. # This must be Linux ELF.
  2929. linux-gnu*)
  2930.   lt_cv_deplibs_check_method=pass_all
  2931.   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  2932.   ;;
  2933.  
  2934. netbsd*)
  2935.   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2936.     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  2937.   else
  2938.     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
  2939.   fi
  2940.   ;;
  2941.  
  2942. newos6*)
  2943.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  2944.   lt_cv_file_magic_cmd=/usr/bin/file
  2945.   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2946.   ;;
  2947.  
  2948. openbsd*)
  2949.   lt_cv_file_magic_cmd=/usr/bin/file
  2950.   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2951.   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2952.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  2953.   else
  2954.     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  2955.   fi
  2956.   ;;
  2957.  
  2958. osf3* | osf4* | osf5*)
  2959.   # this will be overridden with pass_all, but let us keep it just in case
  2960.   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  2961.   lt_cv_file_magic_test_file=/shlib/libc.so
  2962.   lt_cv_deplibs_check_method=pass_all
  2963.   ;;
  2964.  
  2965. sco3.2v5*)
  2966.   lt_cv_deplibs_check_method=pass_all
  2967.   ;;
  2968.  
  2969. solaris*)
  2970.   lt_cv_deplibs_check_method=pass_all
  2971.   lt_cv_file_magic_test_file=/lib/libc.so
  2972.   ;;
  2973.  
  2974. sysv5uw[78]* | sysv4*uw2*)
  2975.   lt_cv_deplibs_check_method=pass_all
  2976.   ;;
  2977.  
  2978. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2979.   case $host_vendor in
  2980.   motorola)
  2981.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  2982.     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2983.     ;;
  2984.   ncr)
  2985.     lt_cv_deplibs_check_method=pass_all
  2986.     ;;
  2987.   sequent)
  2988.     lt_cv_file_magic_cmd='/bin/file'
  2989.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  2990.     ;;
  2991.   sni)
  2992.     lt_cv_file_magic_cmd='/bin/file'
  2993.     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  2994.     lt_cv_file_magic_test_file=/lib/libc.so
  2995.     ;;
  2996.   esac
  2997.   ;;
  2998. esac
  2999.  
  3000. fi
  3001. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3002. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3003. file_magic_cmd=$lt_cv_file_magic_cmd
  3004. deplibs_check_method=$lt_cv_deplibs_check_method
  3005.  
  3006.  
  3007.  
  3008.  
  3009.  
  3010.  
  3011.  
  3012.  
  3013. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3014. echo "$as_me:$LINENO: checking command to parse $NM output" >&5
  3015. echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
  3016. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  3017.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3018. else
  3019.  
  3020. # These are sane defaults that work on at least a few old systems.
  3021. # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  3022.  
  3023. # Character class describing NM global symbol codes.
  3024. symcode='[BCDEGRST]'
  3025.  
  3026. # Regexp to match symbols that can be accessed directly from C.
  3027. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  3028.  
  3029. # Transform the above into a raw symbol and a C symbol.
  3030. symxfrm='\1 \2\3 \3'
  3031.  
  3032. # Transform an extracted symbol line into a proper C declaration
  3033. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  3034.  
  3035. # Transform an extracted symbol line into symbol name and symbol address
  3036. lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  3037.  
  3038. # Define system-specific variables.
  3039. case $host_os in
  3040. aix*)
  3041.   symcode='[BCDT]'
  3042.   ;;
  3043. cygwin* | mingw* | pw32*)
  3044.   symcode='[ABCDGISTW]'
  3045.   ;;
  3046. hpux*) # Its linker distinguishes data from code symbols
  3047.   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3048.   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  3049.   ;;
  3050. irix* | nonstopux*)
  3051.   symcode='[BCDEGRST]'
  3052.   ;;
  3053. solaris* | sysv5*)
  3054.   symcode='[BDT]'
  3055.   ;;
  3056. sysv4)
  3057.   symcode='[DFNSTU]'
  3058.   ;;
  3059. esac
  3060.  
  3061. # Handle CRLF in mingw tool chain
  3062. opt_cr=
  3063. case $host_os in
  3064. mingw*)
  3065.   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3066.   ;;
  3067. esac
  3068.  
  3069. # If we're using GNU nm, then use its standard symbol codes.
  3070. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  3071.   symcode='[ABCDGISTW]'
  3072. fi
  3073.  
  3074. # Try without a prefix undercore, then with it.
  3075. for ac_symprfx in "" "_"; do
  3076.  
  3077.   # Write the raw and C identifiers.
  3078. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[     ]\($symcode$symcode*\)[     ][     ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  3079.  
  3080.   # Check to see that the pipe works correctly.
  3081.   pipe_works=no
  3082.   rm -f conftest*
  3083.   cat > conftest.$ac_ext <<EOF
  3084. #ifdef __cplusplus
  3085. extern "C" {
  3086. #endif
  3087. char nm_test_var;
  3088. void nm_test_func(){}
  3089. #ifdef __cplusplus
  3090. }
  3091. #endif
  3092. int main(){nm_test_var='a';nm_test_func();return(0);}
  3093. EOF
  3094.  
  3095.   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3096.   (eval $ac_compile) 2>&5
  3097.   ac_status=$?
  3098.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3099.   (exit $ac_status); }; then
  3100.     # Now try to grab the symbols.
  3101.     nlist=conftest.nm
  3102.     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  3103.   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  3104.   ac_status=$?
  3105.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3106.   (exit $ac_status); } && test -s "$nlist"; then
  3107.       # Try sorting and uniquifying the output.
  3108.       if sort "$nlist" | uniq > "$nlist"T; then
  3109.     mv -f "$nlist"T "$nlist"
  3110.       else
  3111.     rm -f "$nlist"T
  3112.       fi
  3113.  
  3114.       # Make sure that we snagged all the symbols we need.
  3115.       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  3116.     if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  3117.       cat <<EOF > conftest.$ac_ext
  3118. #ifdef __cplusplus
  3119. extern "C" {
  3120. #endif
  3121.  
  3122. EOF
  3123.       # Now generate the symbol file.
  3124.       eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  3125.  
  3126.       cat <<EOF >> conftest.$ac_ext
  3127. #if defined (__STDC__) && __STDC__
  3128. # define lt_ptr void *
  3129. #else
  3130. # define lt_ptr char *
  3131. # define const
  3132. #endif
  3133.  
  3134. /* The mapping between symbol names and symbols. */
  3135. const struct {
  3136.   const char *name;
  3137.   lt_ptr address;
  3138. }
  3139. lt_preloaded_symbols[] =
  3140. {
  3141. EOF
  3142.       sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  3143.       cat <<\EOF >> conftest.$ac_ext
  3144.   {0, (lt_ptr) 0}
  3145. };
  3146.  
  3147. #ifdef __cplusplus
  3148. }
  3149. #endif
  3150. EOF
  3151.       # Now try linking the two files.
  3152.       mv conftest.$ac_objext conftstm.$ac_objext
  3153.       save_LIBS="$LIBS"
  3154.       save_CFLAGS="$CFLAGS"
  3155.       LIBS="conftstm.$ac_objext"
  3156.       CFLAGS="$CFLAGS$no_builtin_flag"
  3157.       if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3158.   (eval $ac_link) 2>&5
  3159.   ac_status=$?
  3160.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3161.   (exit $ac_status); } && test -s conftest; then
  3162.         pipe_works=yes
  3163.       fi
  3164.       LIBS="$save_LIBS"
  3165.       CFLAGS="$save_CFLAGS"
  3166.     else
  3167.       echo "cannot find nm_test_func in $nlist" >&5
  3168.     fi
  3169.       else
  3170.     echo "cannot find nm_test_var in $nlist" >&5
  3171.       fi
  3172.     else
  3173.       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  3174.     fi
  3175.   else
  3176.     echo "$progname: failed program was:" >&5
  3177.     cat conftest.$ac_ext >&5
  3178.   fi
  3179.   rm -f conftest* conftst*
  3180.  
  3181.   # Do not use the global_symbol_pipe unless it works.
  3182.   if test "$pipe_works" = yes; then
  3183.     break
  3184.   else
  3185.     lt_cv_sys_global_symbol_pipe=
  3186.   fi
  3187. done
  3188.  
  3189. fi
  3190.  
  3191. global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  3192. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3193.   global_symbol_to_cdecl=
  3194.   global_symbol_to_c_name_address=
  3195. else
  3196.   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  3197.   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  3198. fi
  3199. if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  3200. then
  3201.   echo "$as_me:$LINENO: result: failed" >&5
  3202. echo "${ECHO_T}failed" >&6
  3203. else
  3204.   echo "$as_me:$LINENO: result: ok" >&5
  3205. echo "${ECHO_T}ok" >&6
  3206. fi
  3207.  
  3208. ac_ext=c
  3209. ac_cpp='$CPP $CPPFLAGS'
  3210. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3211. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3212. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3213. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3214. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3215. # On Suns, sometimes $CPP names a directory.
  3216. if test -n "$CPP" && test -d "$CPP"; then
  3217.   CPP=
  3218. fi
  3219. if test -z "$CPP"; then
  3220.   if test "${ac_cv_prog_CPP+set}" = set; then
  3221.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3222. else
  3223.       # Double quotes because CPP needs to be expanded
  3224.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3225.     do
  3226.       ac_preproc_ok=false
  3227. for ac_c_preproc_warn_flag in '' yes
  3228. do
  3229.   # Use a header file that comes with gcc, so configuring glibc
  3230.   # with a fresh cross-compiler works.
  3231.   # On the NeXT, cc -E runs the code through the compiler's parser,
  3232.   # not just through cpp. "Syntax error" is here to catch this case.
  3233.   cat >conftest.$ac_ext <<_ACEOF
  3234. #line $LINENO "configure"
  3235. #include "confdefs.h"
  3236. #include <assert.h>
  3237.                      Syntax error
  3238. _ACEOF
  3239. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3240.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3241.   ac_status=$?
  3242.   egrep -v '^ *\+' conftest.er1 >conftest.err
  3243.   rm -f conftest.er1
  3244.   cat conftest.err >&5
  3245.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3246.   (exit $ac_status); } >/dev/null; then
  3247.   if test -s conftest.err; then
  3248.     ac_cpp_err=$ac_c_preproc_warn_flag
  3249.   else
  3250.     ac_cpp_err=
  3251.   fi
  3252. else
  3253.   ac_cpp_err=yes
  3254. fi
  3255. if test -z "$ac_cpp_err"; then
  3256.   :
  3257. else
  3258.   echo "$as_me: failed program was:" >&5
  3259.   cat conftest.$ac_ext >&5
  3260.   # Broken: fails on valid input.
  3261. continue
  3262. fi
  3263. rm -f conftest.err conftest.$ac_ext
  3264.  
  3265.   # OK, works on sane cases.  Now check whether non-existent headers
  3266.   # can be detected and how.
  3267.   cat >conftest.$ac_ext <<_ACEOF
  3268. #line $LINENO "configure"
  3269. #include "confdefs.h"
  3270. #include <ac_nonexistent.h>
  3271. _ACEOF
  3272. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3273.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3274.   ac_status=$?
  3275.   egrep -v '^ *\+' conftest.er1 >conftest.err
  3276.   rm -f conftest.er1
  3277.   cat conftest.err >&5
  3278.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3279.   (exit $ac_status); } >/dev/null; then
  3280.   if test -s conftest.err; then
  3281.     ac_cpp_err=$ac_c_preproc_warn_flag
  3282.   else
  3283.     ac_cpp_err=
  3284.   fi
  3285. else
  3286.   ac_cpp_err=yes
  3287. fi
  3288. if test -z "$ac_cpp_err"; then
  3289.   # Broken: success on invalid input.
  3290. continue
  3291. else
  3292.   echo "$as_me: failed program was:" >&5
  3293.   cat conftest.$ac_ext >&5
  3294.   # Passes both tests.
  3295. ac_preproc_ok=:
  3296. break
  3297. fi
  3298. rm -f conftest.err conftest.$ac_ext
  3299.  
  3300. done
  3301. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3302. rm -f conftest.err conftest.$ac_ext
  3303. if $ac_preproc_ok; then
  3304.   break
  3305. fi
  3306.  
  3307.     done
  3308.     ac_cv_prog_CPP=$CPP
  3309.  
  3310. fi
  3311.   CPP=$ac_cv_prog_CPP
  3312. else
  3313.   ac_cv_prog_CPP=$CPP
  3314. fi
  3315. echo "$as_me:$LINENO: result: $CPP" >&5
  3316. echo "${ECHO_T}$CPP" >&6
  3317. ac_preproc_ok=false
  3318. for ac_c_preproc_warn_flag in '' yes
  3319. do
  3320.   # Use a header file that comes with gcc, so configuring glibc
  3321.   # with a fresh cross-compiler works.
  3322.   # On the NeXT, cc -E runs the code through the compiler's parser,
  3323.   # not just through cpp. "Syntax error" is here to catch this case.
  3324.   cat >conftest.$ac_ext <<_ACEOF
  3325. #line $LINENO "configure"
  3326. #include "confdefs.h"
  3327. #include <assert.h>
  3328.                      Syntax error
  3329. _ACEOF
  3330. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3331.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3332.   ac_status=$?
  3333.   egrep -v '^ *\+' conftest.er1 >conftest.err
  3334.   rm -f conftest.er1
  3335.   cat conftest.err >&5
  3336.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3337.   (exit $ac_status); } >/dev/null; then
  3338.   if test -s conftest.err; then
  3339.     ac_cpp_err=$ac_c_preproc_warn_flag
  3340.   else
  3341.     ac_cpp_err=
  3342.   fi
  3343. else
  3344.   ac_cpp_err=yes
  3345. fi
  3346. if test -z "$ac_cpp_err"; then
  3347.   :
  3348. else
  3349.   echo "$as_me: failed program was:" >&5
  3350.   cat conftest.$ac_ext >&5
  3351.   # Broken: fails on valid input.
  3352. continue
  3353. fi
  3354. rm -f conftest.err conftest.$ac_ext
  3355.  
  3356.   # OK, works on sane cases.  Now check whether non-existent headers
  3357.   # can be detected and how.
  3358.   cat >conftest.$ac_ext <<_ACEOF
  3359. #line $LINENO "configure"
  3360. #include "confdefs.h"
  3361. #include <ac_nonexistent.h>
  3362. _ACEOF
  3363. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3364.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3365.   ac_status=$?
  3366.   egrep -v '^ *\+' conftest.er1 >conftest.err
  3367.   rm -f conftest.er1
  3368.   cat conftest.err >&5
  3369.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3370.   (exit $ac_status); } >/dev/null; then
  3371.   if test -s conftest.err; then
  3372.     ac_cpp_err=$ac_c_preproc_warn_flag
  3373.   else
  3374.     ac_cpp_err=
  3375.   fi
  3376. else
  3377.   ac_cpp_err=yes
  3378. fi
  3379. if test -z "$ac_cpp_err"; then
  3380.   # Broken: success on invalid input.
  3381. continue
  3382. else
  3383.   echo "$as_me: failed program was:" >&5
  3384.   cat conftest.$ac_ext >&5
  3385.   # Passes both tests.
  3386. ac_preproc_ok=:
  3387. break
  3388. fi
  3389. rm -f conftest.err conftest.$ac_ext
  3390.  
  3391. done
  3392. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3393. rm -f conftest.err conftest.$ac_ext
  3394. if $ac_preproc_ok; then
  3395.   :
  3396. else
  3397.   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
  3398. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
  3399.    { (exit 1); exit 1; }; }
  3400. fi
  3401.  
  3402. ac_ext=c
  3403. ac_cpp='$CPP $CPPFLAGS'
  3404. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3405. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3406. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3407.  
  3408.  
  3409. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3410. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3411. if test "${ac_cv_header_stdc+set}" = set; then
  3412.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3413. else
  3414.   cat >conftest.$ac_ext <<_ACEOF
  3415. #line $LINENO "configure"
  3416. #include "confdefs.h"
  3417. #include <stdlib.h>
  3418. #include <stdarg.h>
  3419. #include <string.h>
  3420. #include <float.h>
  3421.  
  3422. _ACEOF
  3423. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3424.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3425.   ac_status=$?
  3426.   egrep -v '^ *\+' conftest.er1 >conftest.err
  3427.   rm -f conftest.er1
  3428.   cat conftest.err >&5
  3429.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3430.   (exit $ac_status); } >/dev/null; then
  3431.   if test -s conftest.err; then
  3432.     ac_cpp_err=$ac_c_preproc_warn_flag
  3433.   else
  3434.     ac_cpp_err=
  3435.   fi
  3436. else
  3437.   ac_cpp_err=yes
  3438. fi
  3439. if test -z "$ac_cpp_err"; then
  3440.   ac_cv_header_stdc=yes
  3441. else
  3442.   echo "$as_me: failed program was:" >&5
  3443.   cat conftest.$ac_ext >&5
  3444.   ac_cv_header_stdc=no
  3445. fi
  3446. rm -f conftest.err conftest.$ac_ext
  3447.  
  3448. if test $ac_cv_header_stdc = yes; then
  3449.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3450.   cat >conftest.$ac_ext <<_ACEOF
  3451. #line $LINENO "configure"
  3452. #include "confdefs.h"
  3453. #include <string.h>
  3454.  
  3455. _ACEOF
  3456. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3457.   egrep "memchr" >/dev/null 2>&1; then
  3458.   :
  3459. else
  3460.   ac_cv_header_stdc=no
  3461. fi
  3462. rm -f conftest*
  3463.  
  3464. fi
  3465.  
  3466. if test $ac_cv_header_stdc = yes; then
  3467.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3468.   cat >conftest.$ac_ext <<_ACEOF
  3469. #line $LINENO "configure"
  3470. #include "confdefs.h"
  3471. #include <stdlib.h>
  3472.  
  3473. _ACEOF
  3474. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3475.   egrep "free" >/dev/null 2>&1; then
  3476.   :
  3477. else
  3478.   ac_cv_header_stdc=no
  3479. fi
  3480. rm -f conftest*
  3481.  
  3482. fi
  3483.  
  3484. if test $ac_cv_header_stdc = yes; then
  3485.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3486.   if test "$cross_compiling" = yes; then
  3487.   :
  3488. else
  3489.   cat >conftest.$ac_ext <<_ACEOF
  3490. #line $LINENO "configure"
  3491. #include "confdefs.h"
  3492. #include <ctype.h>
  3493. #if ((' ' & 0x0FF) == 0x020)
  3494. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3495. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3496. #else
  3497. # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
  3498.                      || ('j' <= (c) && (c) <= 'r') \
  3499.                      || ('s' <= (c) && (c) <= 'z'))
  3500. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3501. #endif
  3502.  
  3503. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3504. int
  3505. main ()
  3506. {
  3507.   int i;
  3508.   for (i = 0; i < 256; i++)
  3509.     if (XOR (islower (i), ISLOWER (i))
  3510.         || toupper (i) != TOUPPER (i))
  3511.       exit(2);
  3512.   exit (0);
  3513. }
  3514. _ACEOF
  3515. rm -f conftest$ac_exeext
  3516. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3517.   (eval $ac_link) 2>&5
  3518.   ac_status=$?
  3519.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3520.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3521.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3522.   (eval $ac_try) 2>&5
  3523.   ac_status=$?
  3524.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3525.   (exit $ac_status); }; }; then
  3526.   :
  3527. else
  3528.   echo "$as_me: program exited with status $ac_status" >&5
  3529. echo "$as_me: failed program was:" >&5
  3530. cat conftest.$ac_ext >&5
  3531. ( exit $ac_status )
  3532. ac_cv_header_stdc=no
  3533. fi
  3534. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3535. fi
  3536. fi
  3537. fi
  3538. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3539. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3540. if test $ac_cv_header_stdc = yes; then
  3541.  
  3542. cat >>confdefs.h <<\_ACEOF
  3543. #define STDC_HEADERS 1
  3544. _ACEOF
  3545.  
  3546. fi
  3547.  
  3548. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3549.  
  3550.  
  3551.  
  3552.  
  3553.  
  3554.  
  3555.  
  3556.  
  3557.  
  3558. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3559.                   inttypes.h stdint.h unistd.h
  3560. do
  3561. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3562. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3563. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3564. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3565.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3566. else
  3567.   cat >conftest.$ac_ext <<_ACEOF
  3568. #line $LINENO "configure"
  3569. #include "confdefs.h"
  3570. $ac_includes_default
  3571.  
  3572. #include <$ac_header>
  3573. _ACEOF
  3574. rm -f conftest.$ac_objext
  3575. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3576.   (eval $ac_compile) 2>&5
  3577.   ac_status=$?
  3578.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3579.   (exit $ac_status); } &&
  3580.          { ac_try='test -s conftest.$ac_objext'
  3581.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3582.   (eval $ac_try) 2>&5
  3583.   ac_status=$?
  3584.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3585.   (exit $ac_status); }; }; then
  3586.   eval "$as_ac_Header=yes"
  3587. else
  3588.   echo "$as_me: failed program was:" >&5
  3589. cat conftest.$ac_ext >&5
  3590. eval "$as_ac_Header=no"
  3591. fi
  3592. rm -f conftest.$ac_objext conftest.$ac_ext
  3593. fi
  3594. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3595. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3596. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3597.   cat >>confdefs.h <<_ACEOF
  3598. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3599. _ACEOF
  3600.  
  3601. fi
  3602.  
  3603. done
  3604.  
  3605.  
  3606.  
  3607. for ac_header in dlfcn.h
  3608. do
  3609. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3610. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3611.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  3612. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3613. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3614.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3615. fi
  3616. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3617. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3618. else
  3619.   # Is the header compilable?
  3620. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3621. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3622. cat >conftest.$ac_ext <<_ACEOF
  3623. #line $LINENO "configure"
  3624. #include "confdefs.h"
  3625. $ac_includes_default
  3626. #include <$ac_header>
  3627. _ACEOF
  3628. rm -f conftest.$ac_objext
  3629. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3630.   (eval $ac_compile) 2>&5
  3631.   ac_status=$?
  3632.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3633.   (exit $ac_status); } &&
  3634.          { ac_try='test -s conftest.$ac_objext'
  3635.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3636.   (eval $ac_try) 2>&5
  3637.   ac_status=$?
  3638.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3639.   (exit $ac_status); }; }; then
  3640.   ac_header_compiler=yes
  3641. else
  3642.   echo "$as_me: failed program was:" >&5
  3643. cat conftest.$ac_ext >&5
  3644. ac_header_compiler=no
  3645. fi
  3646. rm -f conftest.$ac_objext conftest.$ac_ext
  3647. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3648. echo "${ECHO_T}$ac_header_compiler" >&6
  3649.  
  3650. # Is the header present?
  3651. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3652. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3653. cat >conftest.$ac_ext <<_ACEOF
  3654. #line $LINENO "configure"
  3655. #include "confdefs.h"
  3656. #include <$ac_header>
  3657. _ACEOF
  3658. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3659.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3660.   ac_status=$?
  3661.   egrep -v '^ *\+' conftest.er1 >conftest.err
  3662.   rm -f conftest.er1
  3663.   cat conftest.err >&5
  3664.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3665.   (exit $ac_status); } >/dev/null; then
  3666.   if test -s conftest.err; then
  3667.     ac_cpp_err=$ac_c_preproc_warn_flag
  3668.   else
  3669.     ac_cpp_err=
  3670.   fi
  3671. else
  3672.   ac_cpp_err=yes
  3673. fi
  3674. if test -z "$ac_cpp_err"; then
  3675.   ac_header_preproc=yes
  3676. else
  3677.   echo "$as_me: failed program was:" >&5
  3678.   cat conftest.$ac_ext >&5
  3679.   ac_header_preproc=no
  3680. fi
  3681. rm -f conftest.err conftest.$ac_ext
  3682. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3683. echo "${ECHO_T}$ac_header_preproc" >&6
  3684.  
  3685. # So?  What about this header?
  3686. case $ac_header_compiler:$ac_header_preproc in
  3687.   yes:no )
  3688.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3689. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3690.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3691. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  3692.   no:yes )
  3693.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3694. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3695.     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3696. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3697.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3698. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  3699. esac
  3700. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3701. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3702. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3703.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3704. else
  3705.   eval "$as_ac_Header=$ac_header_preproc"
  3706. fi
  3707. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3708. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3709.  
  3710. fi
  3711. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3712.   cat >>confdefs.h <<_ACEOF
  3713. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3714. _ACEOF
  3715.  
  3716. fi
  3717.  
  3718. done
  3719.  
  3720.  
  3721.  
  3722.  
  3723.  
  3724. # Only perform the check for file, if the check method requires it
  3725. case $deplibs_check_method in
  3726. file_magic*)
  3727.   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  3728.     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  3729. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  3730. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  3731.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3732. else
  3733.   case $MAGIC_CMD in
  3734.   /*)
  3735.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3736.   ;;
  3737.   ?:/*)
  3738.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  3739.   ;;
  3740.   *)
  3741.   ac_save_MAGIC_CMD="$MAGIC_CMD"
  3742.   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  3743.   ac_dummy="/usr/bin:$PATH"
  3744.   for ac_dir in $ac_dummy; do
  3745.     test -z "$ac_dir" && ac_dir=.
  3746.     if test -f $ac_dir/${ac_tool_prefix}file; then
  3747.       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  3748.       if test -n "$file_magic_test_file"; then
  3749.     case $deplibs_check_method in
  3750.     "file_magic "*)
  3751.       file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  3752.       MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3753.       if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3754.         egrep "$file_magic_regex" > /dev/null; then
  3755.         :
  3756.       else
  3757.         cat <<EOF 1>&2
  3758.  
  3759. *** Warning: the command libtool uses to detect shared libraries,
  3760. *** $file_magic_cmd, produces output that libtool cannot recognize.
  3761. *** The result is that libtool may fail to recognize shared libraries
  3762. *** as such.  This will affect the creation of libtool libraries that
  3763. *** depend on shared libraries, but programs linked with such libtool
  3764. *** libraries will work regardless of this problem.  Nevertheless, you
  3765. *** may want to report the problem to your system manager and/or to
  3766. *** bug-libtool@gnu.org
  3767.  
  3768. EOF
  3769.       fi ;;
  3770.     esac
  3771.       fi
  3772.       break
  3773.     fi
  3774.   done
  3775.   IFS="$ac_save_ifs"
  3776.   MAGIC_CMD="$ac_save_MAGIC_CMD"
  3777.   ;;
  3778. esac
  3779. fi
  3780.  
  3781. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3782. if test -n "$MAGIC_CMD"; then
  3783.   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  3784. echo "${ECHO_T}$MAGIC_CMD" >&6
  3785. else
  3786.   echo "$as_me:$LINENO: result: no" >&5
  3787. echo "${ECHO_T}no" >&6
  3788. fi
  3789.  
  3790. if test -z "$lt_cv_path_MAGIC_CMD"; then
  3791.   if test -n "$ac_tool_prefix"; then
  3792.     echo "$as_me:$LINENO: checking for file" >&5
  3793. echo $ECHO_N "checking for file... $ECHO_C" >&6
  3794. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  3795.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3796. else
  3797.   case $MAGIC_CMD in
  3798.   /*)
  3799.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3800.   ;;
  3801.   ?:/*)
  3802.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  3803.   ;;
  3804.   *)
  3805.   ac_save_MAGIC_CMD="$MAGIC_CMD"
  3806.   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  3807.   ac_dummy="/usr/bin:$PATH"
  3808.   for ac_dir in $ac_dummy; do
  3809.     test -z "$ac_dir" && ac_dir=.
  3810.     if test -f $ac_dir/file; then
  3811.       lt_cv_path_MAGIC_CMD="$ac_dir/file"
  3812.       if test -n "$file_magic_test_file"; then
  3813.     case $deplibs_check_method in
  3814.     "file_magic "*)
  3815.       file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  3816.       MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3817.       if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3818.         egrep "$file_magic_regex" > /dev/null; then
  3819.         :
  3820.       else
  3821.         cat <<EOF 1>&2
  3822.  
  3823. *** Warning: the command libtool uses to detect shared libraries,
  3824. *** $file_magic_cmd, produces output that libtool cannot recognize.
  3825. *** The result is that libtool may fail to recognize shared libraries
  3826. *** as such.  This will affect the creation of libtool libraries that
  3827. *** depend on shared libraries, but programs linked with such libtool
  3828. *** libraries will work regardless of this problem.  Nevertheless, you
  3829. *** may want to report the problem to your system manager and/or to
  3830. *** bug-libtool@gnu.org
  3831.  
  3832. EOF
  3833.       fi ;;
  3834.     esac
  3835.       fi
  3836.       break
  3837.     fi
  3838.   done
  3839.   IFS="$ac_save_ifs"
  3840.   MAGIC_CMD="$ac_save_MAGIC_CMD"
  3841.   ;;
  3842. esac
  3843. fi
  3844.  
  3845. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3846. if test -n "$MAGIC_CMD"; then
  3847.   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  3848. echo "${ECHO_T}$MAGIC_CMD" >&6
  3849. else
  3850.   echo "$as_me:$LINENO: result: no" >&5
  3851. echo "${ECHO_T}no" >&6
  3852. fi
  3853.  
  3854.   else
  3855.     MAGIC_CMD=:
  3856.   fi
  3857. fi
  3858.  
  3859.   fi
  3860.   ;;
  3861. esac
  3862.  
  3863. if test -n "$ac_tool_prefix"; then
  3864.   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3865. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3866. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3867. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3868. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3869.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3870. else
  3871.   if test -n "$RANLIB"; then
  3872.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3873. else
  3874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3875. for as_dir in $PATH
  3876. do
  3877.   IFS=$as_save_IFS
  3878.   test -z "$as_dir" && as_dir=.
  3879.   for ac_exec_ext in '' $ac_executable_extensions; do
  3880.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3881.     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3882.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3883.     break 2
  3884.   fi
  3885. done
  3886. done
  3887.  
  3888. fi
  3889. fi
  3890. RANLIB=$ac_cv_prog_RANLIB
  3891. if test -n "$RANLIB"; then
  3892.   echo "$as_me:$LINENO: result: $RANLIB" >&5
  3893. echo "${ECHO_T}$RANLIB" >&6
  3894. else
  3895.   echo "$as_me:$LINENO: result: no" >&5
  3896. echo "${ECHO_T}no" >&6
  3897. fi
  3898.  
  3899. fi
  3900. if test -z "$ac_cv_prog_RANLIB"; then
  3901.   ac_ct_RANLIB=$RANLIB
  3902.   # Extract the first word of "ranlib", so it can be a program name with args.
  3903. set dummy ranlib; ac_word=$2
  3904. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3905. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3906. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3907.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3908. else
  3909.   if test -n "$ac_ct_RANLIB"; then
  3910.   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3911. else
  3912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3913. for as_dir in $PATH
  3914. do
  3915.   IFS=$as_save_IFS
  3916.   test -z "$as_dir" && as_dir=.
  3917.   for ac_exec_ext in '' $ac_executable_extensions; do
  3918.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3919.     ac_cv_prog_ac_ct_RANLIB="ranlib"
  3920.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3921.     break 2
  3922.   fi
  3923. done
  3924. done
  3925.  
  3926.   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3927. fi
  3928. fi
  3929. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3930. if test -n "$ac_ct_RANLIB"; then
  3931.   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3932. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3933. else
  3934.   echo "$as_me:$LINENO: result: no" >&5
  3935. echo "${ECHO_T}no" >&6
  3936. fi
  3937.  
  3938.   RANLIB=$ac_ct_RANLIB
  3939. else
  3940.   RANLIB="$ac_cv_prog_RANLIB"
  3941. fi
  3942.  
  3943. if test -n "$ac_tool_prefix"; then
  3944.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3945. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3946. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3947. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3948. if test "${ac_cv_prog_STRIP+set}" = set; then
  3949.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3950. else
  3951.   if test -n "$STRIP"; then
  3952.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3953. else
  3954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3955. for as_dir in $PATH
  3956. do
  3957.   IFS=$as_save_IFS
  3958.   test -z "$as_dir" && as_dir=.
  3959.   for ac_exec_ext in '' $ac_executable_extensions; do
  3960.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3961.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3962.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3963.     break 2
  3964.   fi
  3965. done
  3966. done
  3967.  
  3968. fi
  3969. fi
  3970. STRIP=$ac_cv_prog_STRIP
  3971. if test -n "$STRIP"; then
  3972.   echo "$as_me:$LINENO: result: $STRIP" >&5
  3973. echo "${ECHO_T}$STRIP" >&6
  3974. else
  3975.   echo "$as_me:$LINENO: result: no" >&5
  3976. echo "${ECHO_T}no" >&6
  3977. fi
  3978.  
  3979. fi
  3980. if test -z "$ac_cv_prog_STRIP"; then
  3981.   ac_ct_STRIP=$STRIP
  3982.   # Extract the first word of "strip", so it can be a program name with args.
  3983. set dummy strip; ac_word=$2
  3984. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3985. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3986. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  3987.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3988. else
  3989.   if test -n "$ac_ct_STRIP"; then
  3990.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3991. else
  3992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3993. for as_dir in $PATH
  3994. do
  3995.   IFS=$as_save_IFS
  3996.   test -z "$as_dir" && as_dir=.
  3997.   for ac_exec_ext in '' $ac_executable_extensions; do
  3998.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3999.     ac_cv_prog_ac_ct_STRIP="strip"
  4000.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4001.     break 2
  4002.   fi
  4003. done
  4004. done
  4005.  
  4006.   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  4007. fi
  4008. fi
  4009. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4010. if test -n "$ac_ct_STRIP"; then
  4011.   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4012. echo "${ECHO_T}$ac_ct_STRIP" >&6
  4013. else
  4014.   echo "$as_me:$LINENO: result: no" >&5
  4015. echo "${ECHO_T}no" >&6
  4016. fi
  4017.  
  4018.   STRIP=$ac_ct_STRIP
  4019. else
  4020.   STRIP="$ac_cv_prog_STRIP"
  4021. fi
  4022.  
  4023.  
  4024. enable_dlopen=no
  4025. enable_win32_dll=no
  4026.  
  4027. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  4028. if test "${enable_libtool_lock+set}" = set; then
  4029.   enableval="$enable_libtool_lock"
  4030.  
  4031. fi;
  4032. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4033.  
  4034. # Some flags need to be propagated to the compiler or linker for good
  4035. # libtool support.
  4036. case $host in
  4037. *-*-irix6*)
  4038.   # Find out which ABI we are using.
  4039.   echo '#line 4039 "configure"' > conftest.$ac_ext
  4040.   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4041.   (eval $ac_compile) 2>&5
  4042.   ac_status=$?
  4043.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4044.   (exit $ac_status); }; then
  4045.     case `/usr/bin/file conftest.$ac_objext` in
  4046.     *32-bit*)
  4047.       LD="${LD-ld} -32"
  4048.       ;;
  4049.     *N32*)
  4050.       LD="${LD-ld} -n32"
  4051.       ;;
  4052.     *64-bit*)
  4053.       LD="${LD-ld} -64"
  4054.       ;;
  4055.     esac
  4056.   fi
  4057.   rm -rf conftest*
  4058.   ;;
  4059.  
  4060. *-*-sco3.2v5*)
  4061.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4062.   SAVE_CFLAGS="$CFLAGS"
  4063.   CFLAGS="$CFLAGS -belf"
  4064.   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4065. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  4066. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4067.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4068. else
  4069.  
  4070.  
  4071.      ac_ext=c
  4072. ac_cpp='$CPP $CPPFLAGS'
  4073. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4074. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4075. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4076.  
  4077.      cat >conftest.$ac_ext <<_ACEOF
  4078. #line $LINENO "configure"
  4079. #include "confdefs.h"
  4080.  
  4081. #ifdef F77_DUMMY_MAIN
  4082. #  ifdef __cplusplus
  4083.      extern "C"
  4084. #  endif
  4085.    int F77_DUMMY_MAIN() { return 1; }
  4086. #endif
  4087. int
  4088. main ()
  4089. {
  4090.  
  4091.   ;
  4092.   return 0;
  4093. }
  4094. _ACEOF
  4095. rm -f conftest.$ac_objext conftest$ac_exeext
  4096. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4097.   (eval $ac_link) 2>&5
  4098.   ac_status=$?
  4099.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4100.   (exit $ac_status); } &&
  4101.          { ac_try='test -s conftest$ac_exeext'
  4102.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4103.   (eval $ac_try) 2>&5
  4104.   ac_status=$?
  4105.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4106.   (exit $ac_status); }; }; then
  4107.   lt_cv_cc_needs_belf=yes
  4108. else
  4109.   echo "$as_me: failed program was:" >&5
  4110. cat conftest.$ac_ext >&5
  4111. lt_cv_cc_needs_belf=no
  4112. fi
  4113. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4114.      ac_ext=c
  4115. ac_cpp='$CPP $CPPFLAGS'
  4116. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4117. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4118. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4119.  
  4120. fi
  4121. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4122. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  4123.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4124.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4125.     CFLAGS="$SAVE_CFLAGS"
  4126.   fi
  4127.   ;;
  4128.  
  4129.  
  4130. esac
  4131.  
  4132. # Sed substitution that helps us do robust quoting.  It backslashifies
  4133. # metacharacters that are still active within double-quoted strings.
  4134. Xsed='sed -e s/^X//'
  4135. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  4136.  
  4137. # Same as above, but do not quote variable references.
  4138. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  4139.  
  4140. # Sed substitution to delay expansion of an escaped shell variable in a
  4141. # double_quote_subst'ed string.
  4142. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4143.  
  4144. # Constants:
  4145. rm="rm -f"
  4146.  
  4147. # Global variables:
  4148. default_ofile=libtool
  4149. can_build_shared=yes
  4150.  
  4151. # All known linkers require a `.a' archive for static linking (except M$VC,
  4152. # which needs '.lib').
  4153. libext=a
  4154. ltmain="$ac_aux_dir/ltmain.sh"
  4155. ofile="$default_ofile"
  4156. with_gnu_ld="$lt_cv_prog_gnu_ld"
  4157. need_locks="$enable_libtool_lock"
  4158.  
  4159. old_CC="$CC"
  4160. old_CFLAGS="$CFLAGS"
  4161.  
  4162. # Set sane defaults for various variables
  4163. test -z "$AR" && AR=ar
  4164. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4165. test -z "$AS" && AS=as
  4166. test -z "$CC" && CC=cc
  4167. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4168. test -z "$LD" && LD=ld
  4169. test -z "$LN_S" && LN_S="ln -s"
  4170. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  4171. test -z "$NM" && NM=nm
  4172. test -z "$OBJDUMP" && OBJDUMP=objdump
  4173. test -z "$RANLIB" && RANLIB=:
  4174. test -z "$STRIP" && STRIP=:
  4175. test -z "$ac_objext" && ac_objext=o
  4176.  
  4177. if test x"$host" != x"$build"; then
  4178.   ac_tool_prefix=${host_alias}-
  4179. else
  4180.   ac_tool_prefix=
  4181. fi
  4182.  
  4183. # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  4184. case $host_os in
  4185. linux-gnu*) ;;
  4186. linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  4187. esac
  4188.  
  4189. case $host_os in
  4190. aix3*)
  4191.   # AIX sometimes has problems with the GCC collect2 program.  For some
  4192.   # reason, if we set the COLLECT_NAMES environment variable, the problems
  4193.   # vanish in a puff of smoke.
  4194.   if test "X${COLLECT_NAMES+set}" != Xset; then
  4195.     COLLECT_NAMES=
  4196.     export COLLECT_NAMES
  4197.   fi
  4198.   ;;
  4199. esac
  4200.  
  4201. # Determine commands to create old-style static archives.
  4202. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  4203. old_postinstall_cmds='chmod 644 $oldlib'
  4204. old_postuninstall_cmds=
  4205.  
  4206. if test -n "$RANLIB"; then
  4207.   case $host_os in
  4208.   openbsd*)
  4209.     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  4210.     ;;
  4211.   *)
  4212.     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  4213.     ;;
  4214.   esac
  4215.   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4216. fi
  4217.  
  4218. # Allow CC to be a program name with arguments.
  4219. set dummy $CC
  4220. compiler="$2"
  4221.  
  4222. echo "$as_me:$LINENO: checking for objdir" >&5
  4223. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  4224. rm -f .libs 2>/dev/null
  4225. mkdir .libs 2>/dev/null
  4226. if test -d .libs; then
  4227.   objdir=.libs
  4228. else
  4229.   # MS-DOS does not allow filenames that begin with a dot.
  4230.   objdir=_libs
  4231. fi
  4232. rmdir .libs 2>/dev/null
  4233. echo "$as_me:$LINENO: result: $objdir" >&5
  4234. echo "${ECHO_T}$objdir" >&6
  4235.  
  4236.  
  4237.  
  4238. # Check whether --with-pic or --without-pic was given.
  4239. if test "${with_pic+set}" = set; then
  4240.   withval="$with_pic"
  4241.   pic_mode="$withval"
  4242. else
  4243.   pic_mode=default
  4244. fi;
  4245. test -z "$pic_mode" && pic_mode=default
  4246.  
  4247. # We assume here that the value for lt_cv_prog_cc_pic will not be cached
  4248. # in isolation, and that seeing it set (from the cache) indicates that
  4249. # the associated values are set (in the cache) correctly too.
  4250. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  4251. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  4252. if test "${lt_cv_prog_cc_pic+set}" = set; then
  4253.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4254. else
  4255.    lt_cv_prog_cc_pic=
  4256.   lt_cv_prog_cc_shlib=
  4257.   lt_cv_prog_cc_wl=
  4258.   lt_cv_prog_cc_static=
  4259.   lt_cv_prog_cc_no_builtin=
  4260.   lt_cv_prog_cc_can_build_shared=$can_build_shared
  4261.  
  4262.   if test "$GCC" = yes; then
  4263.     lt_cv_prog_cc_wl='-Wl,'
  4264.     lt_cv_prog_cc_static='-static'
  4265.  
  4266.     case $host_os in
  4267.     aix*)
  4268.       # Below there is a dirty hack to force normal static linking with -ldl
  4269.       # The problem is because libdl dynamically linked with both libc and
  4270.       # libC (AIX C++ library), which obviously doesn't included in libraries
  4271.       # list by gcc. This cause undefined symbols with -static flags.
  4272.       # This hack allows C programs to be linked with "-static -ldl", but
  4273.       # not sure about C++ programs.
  4274.       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  4275.       ;;
  4276.     amigaos*)
  4277.       # FIXME: we need at least 68020 code to build shared libraries, but
  4278.       # adding the `-m68020' flag to GCC prevents building anything better,
  4279.       # like `-m68040'.
  4280.       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  4281.       ;;
  4282.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4283.       # PIC is the default for these OSes.
  4284.       ;;
  4285.     darwin* | rhapsody*)
  4286.       # PIC is the default on this platform
  4287.       # Common symbols not allowed in MH_DYLIB files
  4288.       lt_cv_prog_cc_pic='-fno-common'
  4289.       ;;
  4290.     cygwin* | mingw* | pw32* | os2*)
  4291.       # This hack is so that the source file can tell whether it is being
  4292.       # built for inclusion in a dll (and should export symbols for example).
  4293.       lt_cv_prog_cc_pic='-DDLL_EXPORT'
  4294.       ;;
  4295.     sysv4*MP*)
  4296.       if test -d /usr/nec; then
  4297.      lt_cv_prog_cc_pic=-Kconform_pic
  4298.       fi
  4299.       ;;
  4300.     *)
  4301.       lt_cv_prog_cc_pic='-fPIC'
  4302.       ;;
  4303.     esac
  4304.   else
  4305.     # PORTME Check for PIC flags for the system compiler.
  4306.     case $host_os in
  4307.     aix3* | aix4* | aix5*)
  4308.       lt_cv_prog_cc_wl='-Wl,'
  4309.       # All AIX code is PIC.
  4310.       if test "$host_cpu" = ia64; then
  4311.     # AIX 5 now supports IA64 processor
  4312.     lt_cv_prog_cc_static='-Bstatic'
  4313.       else
  4314.     lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  4315.       fi
  4316.       ;;
  4317.  
  4318.     hpux9* | hpux10* | hpux11*)
  4319.       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  4320.       lt_cv_prog_cc_wl='-Wl,'
  4321.       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  4322.       lt_cv_prog_cc_pic='+Z'
  4323.       ;;
  4324.  
  4325.     irix5* | irix6* | nonstopux*)
  4326.       lt_cv_prog_cc_wl='-Wl,'
  4327.       lt_cv_prog_cc_static='-non_shared'
  4328.       # PIC (with -KPIC) is the default.
  4329.       ;;
  4330.  
  4331.     cygwin* | mingw* | pw32* | os2*)
  4332.       # This hack is so that the source file can tell whether it is being
  4333.       # built for inclusion in a dll (and should export symbols for example).
  4334.       lt_cv_prog_cc_pic='-DDLL_EXPORT'
  4335.       ;;
  4336.  
  4337.     newsos6)
  4338.       lt_cv_prog_cc_pic='-KPIC'
  4339.       lt_cv_prog_cc_static='-Bstatic'
  4340.       ;;
  4341.  
  4342.     osf3* | osf4* | osf5*)
  4343.       # All OSF/1 code is PIC.
  4344.       lt_cv_prog_cc_wl='-Wl,'
  4345.       lt_cv_prog_cc_static='-non_shared'
  4346.       ;;
  4347.  
  4348.     sco3.2v5*)
  4349.       lt_cv_prog_cc_pic='-Kpic'
  4350.       lt_cv_prog_cc_static='-dn'
  4351.       lt_cv_prog_cc_shlib='-belf'
  4352.       ;;
  4353.  
  4354.     solaris*)
  4355.       lt_cv_prog_cc_pic='-KPIC'
  4356.       lt_cv_prog_cc_static='-Bstatic'
  4357.       lt_cv_prog_cc_wl='-Wl,'
  4358.       ;;
  4359.  
  4360.     sunos4*)
  4361.       lt_cv_prog_cc_pic='-PIC'
  4362.       lt_cv_prog_cc_static='-Bstatic'
  4363.       lt_cv_prog_cc_wl='-Qoption ld '
  4364.       ;;
  4365.  
  4366.     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4367.       lt_cv_prog_cc_pic='-KPIC'
  4368.       lt_cv_prog_cc_static='-Bstatic'
  4369.       if test "x$host_vendor" = xsni; then
  4370.     lt_cv_prog_cc_wl='-LD'
  4371.       else
  4372.     lt_cv_prog_cc_wl='-Wl,'
  4373.       fi
  4374.       ;;
  4375.  
  4376.     uts4*)
  4377.       lt_cv_prog_cc_pic='-pic'
  4378.       lt_cv_prog_cc_static='-Bstatic'
  4379.       ;;
  4380.  
  4381.     sysv4*MP*)
  4382.       if test -d /usr/nec ;then
  4383.     lt_cv_prog_cc_pic='-Kconform_pic'
  4384.     lt_cv_prog_cc_static='-Bstatic'
  4385.       fi
  4386.       ;;
  4387.  
  4388.     *)
  4389.       lt_cv_prog_cc_can_build_shared=no
  4390.       ;;
  4391.     esac
  4392.   fi
  4393.  
  4394. fi
  4395.  
  4396. if test -z "$lt_cv_prog_cc_pic"; then
  4397.   echo "$as_me:$LINENO: result: none" >&5
  4398. echo "${ECHO_T}none" >&6
  4399. else
  4400.   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
  4401. echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
  4402.  
  4403.   # Check to make sure the pic_flag actually works.
  4404.   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
  4405. echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
  4406.   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
  4407.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4408. else
  4409.       save_CFLAGS="$CFLAGS"
  4410.     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  4411.     cat >conftest.$ac_ext <<_ACEOF
  4412. #line $LINENO "configure"
  4413. #include "confdefs.h"
  4414.  
  4415. #ifdef F77_DUMMY_MAIN
  4416. #  ifdef __cplusplus
  4417.      extern "C"
  4418. #  endif
  4419.    int F77_DUMMY_MAIN() { return 1; }
  4420. #endif
  4421. int
  4422. main ()
  4423. {
  4424.  
  4425.   ;
  4426.   return 0;
  4427. }
  4428. _ACEOF
  4429. rm -f conftest.$ac_objext
  4430. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4431.   (eval $ac_compile) 2>&5
  4432.   ac_status=$?
  4433.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4434.   (exit $ac_status); } &&
  4435.          { ac_try='test -s conftest.$ac_objext'
  4436.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4437.   (eval $ac_try) 2>&5
  4438.   ac_status=$?
  4439.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4440.   (exit $ac_status); }; }; then
  4441.         case $host_os in
  4442.       hpux9* | hpux10* | hpux11*)
  4443.     # On HP-UX, both CC and GCC only warn that PIC is supported... then
  4444.     # they create non-PIC objects.  So, if there were any warnings, we
  4445.     # assume that PIC is not supported.
  4446.     if test -s conftest.err; then
  4447.       lt_cv_prog_cc_pic_works=no
  4448.     else
  4449.       lt_cv_prog_cc_pic_works=yes
  4450.     fi
  4451.     ;;
  4452.       *)
  4453.     lt_cv_prog_cc_pic_works=yes
  4454.     ;;
  4455.       esac
  4456.  
  4457. else
  4458.   echo "$as_me: failed program was:" >&5
  4459. cat conftest.$ac_ext >&5
  4460.       lt_cv_prog_cc_pic_works=no
  4461.  
  4462. fi
  4463. rm -f conftest.$ac_objext conftest.$ac_ext
  4464.     CFLAGS="$save_CFLAGS"
  4465.  
  4466. fi
  4467.  
  4468.  
  4469.   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
  4470.     lt_cv_prog_cc_pic=
  4471.     lt_cv_prog_cc_can_build_shared=no
  4472.   else
  4473.     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  4474.   fi
  4475.  
  4476.   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
  4477. echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
  4478. fi
  4479.  
  4480. # Check for any special shared library compilation flags.
  4481. if test -n "$lt_cv_prog_cc_shlib"; then
  4482.   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
  4483. echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
  4484.   if echo "$old_CC $old_CFLAGS " | egrep -e "[     ]$lt_cv_prog_cc_shlib[     ]" >/dev/null; then :
  4485.   else
  4486.    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  4487. echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  4488.     lt_cv_prog_cc_can_build_shared=no
  4489.   fi
  4490. fi
  4491.  
  4492. echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
  4493. echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
  4494. if test "${lt_cv_prog_cc_static_works+set}" = set; then
  4495.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4496. else
  4497.     lt_cv_prog_cc_static_works=no
  4498.   save_LDFLAGS="$LDFLAGS"
  4499.   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  4500.   cat >conftest.$ac_ext <<_ACEOF
  4501. #line $LINENO "configure"
  4502. #include "confdefs.h"
  4503.  
  4504. #ifdef F77_DUMMY_MAIN
  4505. #  ifdef __cplusplus
  4506.      extern "C"
  4507. #  endif
  4508.    int F77_DUMMY_MAIN() { return 1; }
  4509. #endif
  4510. int
  4511. main ()
  4512. {
  4513.  
  4514.   ;
  4515.   return 0;
  4516. }
  4517. _ACEOF
  4518. rm -f conftest.$ac_objext conftest$ac_exeext
  4519. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4520.   (eval $ac_link) 2>&5
  4521.   ac_status=$?
  4522.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4523.   (exit $ac_status); } &&
  4524.          { ac_try='test -s conftest$ac_exeext'
  4525.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4526.   (eval $ac_try) 2>&5
  4527.   ac_status=$?
  4528.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4529.   (exit $ac_status); }; }; then
  4530.   lt_cv_prog_cc_static_works=yes
  4531. else
  4532.   echo "$as_me: failed program was:" >&5
  4533. cat conftest.$ac_ext >&5
  4534. fi
  4535. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4536.   LDFLAGS="$save_LDFLAGS"
  4537.  
  4538. fi
  4539.  
  4540.  
  4541. # Belt *and* braces to stop my trousers falling down:
  4542. test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  4543. echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
  4544. echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
  4545.  
  4546. pic_flag="$lt_cv_prog_cc_pic"
  4547. special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  4548. wl="$lt_cv_prog_cc_wl"
  4549. link_static_flag="$lt_cv_prog_cc_static"
  4550. no_builtin_flag="$lt_cv_prog_cc_no_builtin"
  4551. can_build_shared="$lt_cv_prog_cc_can_build_shared"
  4552.  
  4553.  
  4554. # Check to see if options -o and -c are simultaneously supported by compiler
  4555. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  4556. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  4557. if test "${lt_cv_compiler_c_o+set}" = set; then
  4558.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4559. else
  4560.  
  4561. $rm -r conftest 2>/dev/null
  4562. mkdir conftest
  4563. cd conftest
  4564. echo "int some_variable = 0;" > conftest.$ac_ext
  4565. mkdir out
  4566. # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  4567. # that will create temporary files in the current directory regardless of
  4568. # the output directory.  Thus, making CWD read-only will cause this test
  4569. # to fail, enabling locking or at least warning the user not to do parallel
  4570. # builds.
  4571. chmod -w .
  4572. save_CFLAGS="$CFLAGS"
  4573. CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  4574. compiler_c_o=no
  4575. if { (eval echo configure:4575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  4576.   # The compiler can only warn and ignore the option if not recognized
  4577.   # So say no if there are warnings
  4578.   if test -s out/conftest.err; then
  4579.     lt_cv_compiler_c_o=no
  4580.   else
  4581.     lt_cv_compiler_c_o=yes
  4582.   fi
  4583. else
  4584.   # Append any errors to the config.log.
  4585.   cat out/conftest.err 1>&5
  4586.   lt_cv_compiler_c_o=no
  4587. fi
  4588. CFLAGS="$save_CFLAGS"
  4589. chmod u+w .
  4590. $rm conftest* out/*
  4591. rmdir out
  4592. cd ..
  4593. rmdir conftest
  4594. $rm -r conftest 2>/dev/null
  4595.  
  4596. fi
  4597.  
  4598. compiler_c_o=$lt_cv_compiler_c_o
  4599. echo "$as_me:$LINENO: result: $compiler_c_o" >&5
  4600. echo "${ECHO_T}$compiler_c_o" >&6
  4601.  
  4602. if test x"$compiler_c_o" = x"yes"; then
  4603.   # Check to see if we can write to a .lo
  4604.   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
  4605. echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
  4606.   if test "${lt_cv_compiler_o_lo+set}" = set; then
  4607.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4608. else
  4609.  
  4610.   lt_cv_compiler_o_lo=no
  4611.   save_CFLAGS="$CFLAGS"
  4612.   CFLAGS="$CFLAGS -c -o conftest.lo"
  4613.   save_objext="$ac_objext"
  4614.   ac_objext=lo
  4615.   cat >conftest.$ac_ext <<_ACEOF
  4616. #line $LINENO "configure"
  4617. #include "confdefs.h"
  4618.  
  4619. #ifdef F77_DUMMY_MAIN
  4620. #  ifdef __cplusplus
  4621.      extern "C"
  4622. #  endif
  4623.    int F77_DUMMY_MAIN() { return 1; }
  4624. #endif
  4625. int
  4626. main ()
  4627. {
  4628. int some_variable = 0;
  4629.   ;
  4630.   return 0;
  4631. }
  4632. _ACEOF
  4633. rm -f conftest.$ac_objext
  4634. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4635.   (eval $ac_compile) 2>&5
  4636.   ac_status=$?
  4637.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4638.   (exit $ac_status); } &&
  4639.          { ac_try='test -s conftest.$ac_objext'
  4640.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4641.   (eval $ac_try) 2>&5
  4642.   ac_status=$?
  4643.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4644.   (exit $ac_status); }; }; then
  4645.       # The compiler can only warn and ignore the option if not recognized
  4646.     # So say no if there are warnings
  4647.     if test -s conftest.err; then
  4648.       lt_cv_compiler_o_lo=no
  4649.     else
  4650.       lt_cv_compiler_o_lo=yes
  4651.     fi
  4652.  
  4653. else
  4654.   echo "$as_me: failed program was:" >&5
  4655. cat conftest.$ac_ext >&5
  4656. fi
  4657. rm -f conftest.$ac_objext conftest.$ac_ext
  4658.   ac_objext="$save_objext"
  4659.   CFLAGS="$save_CFLAGS"
  4660.  
  4661. fi
  4662.  
  4663.   compiler_o_lo=$lt_cv_compiler_o_lo
  4664.   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
  4665. echo "${ECHO_T}$compiler_o_lo" >&6
  4666. else
  4667.   compiler_o_lo=no
  4668. fi
  4669.  
  4670. # Check to see if we can do hard links to lock some files if needed
  4671. hard_links="nottested"
  4672. if test "$compiler_c_o" = no && test "$need_locks" != no; then
  4673.   # do not overwrite the value of need_locks provided by the user
  4674.   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  4675. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  4676.   hard_links=yes
  4677.   $rm conftest*
  4678.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  4679.   touch conftest.a
  4680.   ln conftest.a conftest.b 2>&5 || hard_links=no
  4681.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  4682.   echo "$as_me:$LINENO: result: $hard_links" >&5
  4683. echo "${ECHO_T}$hard_links" >&6
  4684.   if test "$hard_links" = no; then
  4685.     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  4686. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  4687.     need_locks=warn
  4688.   fi
  4689. else
  4690.   need_locks=no
  4691. fi
  4692.  
  4693. if test "$GCC" = yes; then
  4694.   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  4695.   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  4696. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  4697.   echo "int some_variable = 0;" > conftest.$ac_ext
  4698.   save_CFLAGS="$CFLAGS"
  4699.   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  4700.   compiler_rtti_exceptions=no
  4701.   cat >conftest.$ac_ext <<_ACEOF
  4702. #line $LINENO "configure"
  4703. #include "confdefs.h"
  4704.  
  4705. #ifdef F77_DUMMY_MAIN
  4706. #  ifdef __cplusplus
  4707.      extern "C"
  4708. #  endif
  4709.    int F77_DUMMY_MAIN() { return 1; }
  4710. #endif
  4711. int
  4712. main ()
  4713. {
  4714. int some_variable = 0;
  4715.   ;
  4716.   return 0;
  4717. }
  4718. _ACEOF
  4719. rm -f conftest.$ac_objext
  4720. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4721.   (eval $ac_compile) 2>&5
  4722.   ac_status=$?
  4723.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4724.   (exit $ac_status); } &&
  4725.          { ac_try='test -s conftest.$ac_objext'
  4726.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4727.   (eval $ac_try) 2>&5
  4728.   ac_status=$?
  4729.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4730.   (exit $ac_status); }; }; then
  4731.       # The compiler can only warn and ignore the option if not recognized
  4732.     # So say no if there are warnings
  4733.     if test -s conftest.err; then
  4734.       compiler_rtti_exceptions=no
  4735.     else
  4736.       compiler_rtti_exceptions=yes
  4737.     fi
  4738.  
  4739. else
  4740.   echo "$as_me: failed program was:" >&5
  4741. cat conftest.$ac_ext >&5
  4742. fi
  4743. rm -f conftest.$ac_objext conftest.$ac_ext
  4744.   CFLAGS="$save_CFLAGS"
  4745.   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
  4746. echo "${ECHO_T}$compiler_rtti_exceptions" >&6
  4747.  
  4748.   if test "$compiler_rtti_exceptions" = "yes"; then
  4749.     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  4750.   else
  4751.     no_builtin_flag=' -fno-builtin'
  4752.   fi
  4753. fi
  4754.  
  4755. # See if the linker supports building shared libraries.
  4756. echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
  4757. echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
  4758.  
  4759. allow_undefined_flag=
  4760. no_undefined_flag=
  4761. need_lib_prefix=unknown
  4762. need_version=unknown
  4763. # when you set need_version to no, make sure it does not cause -set_version
  4764. # flags to be left without arguments
  4765. archive_cmds=
  4766. archive_expsym_cmds=
  4767. old_archive_from_new_cmds=
  4768. old_archive_from_expsyms_cmds=
  4769. export_dynamic_flag_spec=
  4770. whole_archive_flag_spec=
  4771. thread_safe_flag_spec=
  4772. hardcode_into_libs=no
  4773. hardcode_libdir_flag_spec=
  4774. hardcode_libdir_separator=
  4775. hardcode_direct=no
  4776. hardcode_minus_L=no
  4777. hardcode_shlibpath_var=unsupported
  4778. runpath_var=
  4779. link_all_deplibs=unknown
  4780. always_export_symbols=no
  4781. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4782. # include_expsyms should be a list of space-separated symbols to be *always*
  4783. # included in the symbol list
  4784. include_expsyms=
  4785. # exclude_expsyms can be an egrep regular expression of symbols to exclude
  4786. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4787. # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4788. # as well as any symbol that contains `d'.
  4789. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  4790. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4791. # platforms (ab)use it in PIC code, but their linkers get confused if
  4792. # the symbol is explicitly referenced.  Since portable code cannot
  4793. # rely on this symbol name, it's probably fine to never include it in
  4794. # preloaded symbol tables.
  4795. extract_expsyms_cmds=
  4796.  
  4797. case $host_os in
  4798. cygwin* | mingw* | pw32*)
  4799.   # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4800.   # When not using gcc, we currently assume that we are using
  4801.   # Microsoft Visual C++.
  4802.   if test "$GCC" != yes; then
  4803.     with_gnu_ld=no
  4804.   fi
  4805.   ;;
  4806. openbsd*)
  4807.   with_gnu_ld=no
  4808.   ;;
  4809. esac
  4810.  
  4811. ld_shlibs=yes
  4812. if test "$with_gnu_ld" = yes; then
  4813.   # If archive_cmds runs LD, not CC, wlarc should be empty
  4814.   wlarc='${wl}'
  4815.  
  4816.   # See if GNU ld supports shared libraries.
  4817.   case $host_os in
  4818.   aix3* | aix4* | aix5*)
  4819.     # On AIX, the GNU linker is very broken
  4820.     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
  4821.     ld_shlibs=no
  4822.     cat <<EOF 1>&2
  4823.  
  4824. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  4825. *** to be unable to reliably create shared libraries on AIX.
  4826. *** Therefore, libtool is disabling shared libraries support.  If you
  4827. *** really care for shared libraries, you may want to modify your PATH
  4828. *** so that a non-GNU linker is found, and then restart.
  4829.  
  4830. EOF
  4831.     ;;
  4832.  
  4833.   amigaos*)
  4834.     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  4835.     hardcode_libdir_flag_spec='-L$libdir'
  4836.     hardcode_minus_L=yes
  4837.  
  4838.     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  4839.     # that the semantics of dynamic libraries on AmigaOS, at least up
  4840.     # to version 4, is to share data among multiple programs linked
  4841.     # with the same dynamic library.  Since this doesn't match the
  4842.     # behavior of shared libraries on other platforms, we can use
  4843.     # them.
  4844.     ld_shlibs=no
  4845.     ;;
  4846.  
  4847.   beos*)
  4848.     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  4849.       allow_undefined_flag=unsupported
  4850.       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4851.       # support --undefined.  This deserves some investigation.  FIXME
  4852.       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4853.     else
  4854.       ld_shlibs=no
  4855.     fi
  4856.     ;;
  4857.  
  4858.   cygwin* | mingw* | pw32*)
  4859.     # hardcode_libdir_flag_spec is actually meaningless, as there is
  4860.     # no search path for DLLs.
  4861.     hardcode_libdir_flag_spec='-L$libdir'
  4862.     allow_undefined_flag=unsupported
  4863.     always_export_symbols=yes
  4864.  
  4865.     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  4866.       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  4867.       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  4868.       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  4869.       else $CC -o impgen impgen.c ; fi)~
  4870.       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  4871.  
  4872.     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  4873.  
  4874.     # cygwin and mingw dlls have different entry points and sets of symbols
  4875.     # to exclude.
  4876.     # FIXME: what about values for MSVC?
  4877.     dll_entry=__cygwin_dll_entry@12
  4878.     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  4879.     case $host_os in
  4880.     mingw*)
  4881.       # mingw values
  4882.       dll_entry=_DllMainCRTStartup@12
  4883.       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  4884.       ;;
  4885.     esac
  4886.  
  4887.     # mingw and cygwin differ, and it's simplest to just exclude the union
  4888.     # of the two symbol sets.
  4889.     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  4890.  
  4891.     # recent cygwin and mingw systems supply a stub DllMain which the user
  4892.     # can override, but on older systems we have to supply one (in ltdll.c)
  4893.     if test "x$lt_cv_need_dllmain" = "xyes"; then
  4894.       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  4895.       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
  4896.     test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  4897.     else
  4898.       ltdll_obj=
  4899.       ltdll_cmds=
  4900.     fi
  4901.  
  4902.     # Extract the symbol export list from an `--export-all' def file,
  4903.     # then regenerate the def file from the symbol export list, so that
  4904.     # the compiled dll only exports the symbol export list.
  4905.     # Be careful not to strip the DATA tag left be newer dlltools.
  4906.     export_symbols_cmds="$ltdll_cmds"'
  4907.       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  4908.       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  4909.  
  4910.     # If the export-symbols file already is a .def file (1st line
  4911.     # is EXPORTS), use it as is.
  4912.     # If DATA tags from a recent dlltool are present, honour them!
  4913.     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
  4914.     cp $export_symbols $output_objdir/$soname-def;
  4915.       else
  4916.     echo EXPORTS > $output_objdir/$soname-def;
  4917.     _lt_hint=1;
  4918.     cat $export_symbols | while read symbol; do
  4919.      set dummy \$symbol;
  4920.      case \$# in
  4921.        2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  4922.        *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  4923.      esac;
  4924.      _lt_hint=`expr 1 + \$_lt_hint`;
  4925.     done;
  4926.       fi~
  4927.       '"$ltdll_cmds"'
  4928.       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  4929.       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
  4930.       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  4931.       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
  4932.       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  4933.     ;;
  4934.  
  4935.   netbsd*)
  4936.     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4937.       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4938.       wlarc=
  4939.     else
  4940.       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4941.       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4942.     fi
  4943.     ;;
  4944.  
  4945.   solaris* | sysv5*)
  4946.     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  4947.       ld_shlibs=no
  4948.       cat <<EOF 1>&2
  4949.  
  4950. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4951. *** create shared libraries on Solaris systems.  Therefore, libtool
  4952. *** is disabling shared libraries support.  We urge you to upgrade GNU
  4953. *** binutils to release 2.9.1 or newer.  Another option is to modify
  4954. *** your PATH or compiler configuration so that the native linker is
  4955. *** used, and then restart.
  4956.  
  4957. EOF
  4958.     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  4959.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4960.       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4961.     else
  4962.       ld_shlibs=no
  4963.     fi
  4964.     ;;
  4965.  
  4966.   sunos4*)
  4967.     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4968.     wlarc=
  4969.     hardcode_direct=yes
  4970.     hardcode_shlibpath_var=no
  4971.     ;;
  4972.  
  4973.   *)
  4974.     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  4975.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4976.       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4977.     else
  4978.       ld_shlibs=no
  4979.     fi
  4980.     ;;
  4981.   esac
  4982.  
  4983.   if test "$ld_shlibs" = yes; then
  4984.     runpath_var=LD_RUN_PATH
  4985.     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  4986.     export_dynamic_flag_spec='${wl}--export-dynamic'
  4987.     case $host_os in
  4988.     cygwin* | mingw* | pw32*)
  4989.       # dlltool doesn't understand --whole-archive et. al.
  4990.       whole_archive_flag_spec=
  4991.       ;;
  4992.     *)
  4993.       # ancient GNU ld didn't support --whole-archive et. al.
  4994.       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  4995.     whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4996.       else
  4997.     whole_archive_flag_spec=
  4998.       fi
  4999.       ;;
  5000.     esac
  5001.   fi
  5002. else
  5003.   # PORTME fill in a description of your system's linker (not GNU ld)
  5004.   case $host_os in
  5005.   aix3*)
  5006.     allow_undefined_flag=unsupported
  5007.     always_export_symbols=yes
  5008.     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  5009.     # Note: this linker hardcodes the directories in LIBPATH if there
  5010.     # are no directories specified by -L.
  5011.     hardcode_minus_L=yes
  5012.     if test "$GCC" = yes && test -z "$link_static_flag"; then
  5013.       # Neither direct hardcoding nor static linking is supported with a
  5014.       # broken collect2.
  5015.       hardcode_direct=unsupported
  5016.     fi
  5017.     ;;
  5018.  
  5019.   aix4* | aix5*)
  5020.     if test "$host_cpu" = ia64; then
  5021.       # On IA64, the linker does run time linking by default, so we don't
  5022.       # have to do anything special.
  5023.       aix_use_runtimelinking=no
  5024.       exp_sym_flag='-Bexport'
  5025.       no_entry_flag=""
  5026.     else
  5027.       aix_use_runtimelinking=no
  5028.  
  5029.       # Test if we are trying to use run time linking or normal
  5030.       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5031.       # need to do runtime linking.
  5032.       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  5033.     for ld_flag in $LDFLAGS; do
  5034.       if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5035.         aix_use_runtimelinking=yes
  5036.         break
  5037.       fi
  5038.     done
  5039.       esac
  5040.  
  5041.       exp_sym_flag='-bexport'
  5042.       no_entry_flag='-bnoentry'
  5043.     fi
  5044.  
  5045.     # When large executables or shared objects are built, AIX ld can
  5046.     # have problems creating the table of contents.  If linking a library
  5047.     # or program results in "error TOC overflow" add -mminimal-toc to
  5048.     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  5049.     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5050.  
  5051.     hardcode_direct=yes
  5052.     archive_cmds=''
  5053.     hardcode_libdir_separator=':'
  5054.     if test "$GCC" = yes; then
  5055.       case $host_os in aix4.[012]|aix4.[012].*)
  5056.     collect2name=`${CC} -print-prog-name=collect2`
  5057.     if test -f "$collect2name" && \
  5058.       strings "$collect2name" | grep resolve_lib_name >/dev/null
  5059.     then
  5060.       # We have reworked collect2
  5061.       hardcode_direct=yes
  5062.     else
  5063.       # We have old collect2
  5064.       hardcode_direct=unsupported
  5065.       # It fails to find uninstalled libraries when the uninstalled
  5066.       # path is not listed in the libpath.  Setting hardcode_minus_L
  5067.       # to unsupported forces relinking
  5068.       hardcode_minus_L=yes
  5069.       hardcode_libdir_flag_spec='-L$libdir'
  5070.       hardcode_libdir_separator=
  5071.     fi
  5072.       esac
  5073.  
  5074.       shared_flag='-shared'
  5075.     else
  5076.       # not using gcc
  5077.       if test "$host_cpu" = ia64; then
  5078.     shared_flag='${wl}-G'
  5079.       else
  5080.     if test "$aix_use_runtimelinking" = yes; then
  5081.       shared_flag='${wl}-G'
  5082.     else
  5083.       shared_flag='${wl}-bM:SRE'
  5084.     fi
  5085.       fi
  5086.     fi
  5087.  
  5088.     # It seems that -bexpall can do strange things, so it is better to
  5089.     # generate a list of symbols to export.
  5090.     always_export_symbols=yes
  5091.     if test "$aix_use_runtimelinking" = yes; then
  5092.       # Warning - without using the other runtime loading flags (-brtl),
  5093.       # -berok will link without error, but may produce a broken library.
  5094.       allow_undefined_flag='-berok'
  5095.       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  5096.       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5097.     else
  5098.       if test "$host_cpu" = ia64; then
  5099.     hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  5100.     allow_undefined_flag="-z nodefs"
  5101.     archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  5102.       else
  5103.     hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  5104.     # Warning - without using the other run time loading flags,
  5105.     # -berok will link without error, but may produce a broken library.
  5106.     allow_undefined_flag='${wl}-berok'
  5107.     # This is a bit strange, but is similar to how AIX traditionally builds
  5108.     # it's shared libraries.
  5109.     archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
  5110.       fi
  5111.     fi
  5112.     ;;
  5113.  
  5114.   amigaos*)
  5115.     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  5116.     hardcode_libdir_flag_spec='-L$libdir'
  5117.     hardcode_minus_L=yes
  5118.     # see comment about different semantics on the GNU ld section
  5119.     ld_shlibs=no
  5120.     ;;
  5121.  
  5122.   cygwin* | mingw* | pw32*)
  5123.     # When not using gcc, we currently assume that we are using
  5124.     # Microsoft Visual C++.
  5125.     # hardcode_libdir_flag_spec is actually meaningless, as there is
  5126.     # no search path for DLLs.
  5127.     hardcode_libdir_flag_spec=' '
  5128.     allow_undefined_flag=unsupported
  5129.     # Tell ltmain to make .lib files, not .a files.
  5130.     libext=lib
  5131.     # FIXME: Setting linknames here is a bad hack.
  5132.     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  5133.     # The linker will automatically build a .lib file if we build a DLL.
  5134.     old_archive_from_new_cmds='true'
  5135.     # FIXME: Should let the user specify the lib program.
  5136.     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  5137.     fix_srcfile_path='`cygpath -w "$srcfile"`'
  5138.     ;;
  5139.  
  5140.   darwin* | rhapsody*)
  5141.     case "$host_os" in
  5142.     rhapsody* | darwin1.[012])
  5143.       allow_undefined_flag='-undefined suppress'
  5144.       ;;
  5145.     *) # Darwin 1.3 on
  5146.       allow_undefined_flag='-flat_namespace -undefined suppress'
  5147.       ;;
  5148.     esac
  5149.     # FIXME: Relying on posixy $() will cause problems for
  5150.     #        cross-compilation, but unfortunately the echo tests do not
  5151.     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
  5152.     #         `"' quotes if we put them in here... so don't!
  5153.     archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
  5154.     # We need to add '_' to the symbols in $export_symbols first
  5155.     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  5156.     hardcode_direct=yes
  5157.     hardcode_shlibpath_var=no
  5158.     whole_archive_flag_spec='-all_load $convenience'
  5159.     ;;
  5160.  
  5161.   freebsd1*)
  5162.     ld_shlibs=no
  5163.     ;;
  5164.  
  5165.   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  5166.   # support.  Future versions do this automatically, but an explicit c++rt0.o
  5167.   # does not break anything, and helps significantly (at the cost of a little
  5168.   # extra space).
  5169.   freebsd2.2*)
  5170.     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  5171.     hardcode_libdir_flag_spec='-R$libdir'
  5172.     hardcode_direct=yes
  5173.     hardcode_shlibpath_var=no
  5174.     ;;
  5175.  
  5176.   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  5177.   freebsd2*)
  5178.     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5179.     hardcode_direct=yes
  5180.     hardcode_minus_L=yes
  5181.     hardcode_shlibpath_var=no
  5182.     ;;
  5183.  
  5184.   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  5185.   freebsd*)
  5186.     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  5187.     hardcode_libdir_flag_spec='-R$libdir'
  5188.     hardcode_direct=yes
  5189.     hardcode_shlibpath_var=no
  5190.     ;;
  5191.  
  5192.   hpux9* | hpux10* | hpux11*)
  5193.     case $host_os in
  5194.     hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
  5195.     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
  5196.     esac
  5197.     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  5198.     hardcode_libdir_separator=:
  5199.     hardcode_direct=yes
  5200.     hardcode_minus_L=yes # Not in the search PATH, but as the default
  5201.              # location of the library.
  5202.     export_dynamic_flag_spec='${wl}-E'
  5203.     ;;
  5204.  
  5205.   irix5* | irix6* | nonstopux*)
  5206.     if test "$GCC" = yes; then
  5207.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5208.     else
  5209.       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5210.     fi
  5211.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  5212.     hardcode_libdir_separator=:
  5213.     link_all_deplibs=yes
  5214.     ;;
  5215.  
  5216.   netbsd*)
  5217.     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5218.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  5219.     else
  5220.       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  5221.     fi
  5222.     hardcode_libdir_flag_spec='-R$libdir'
  5223.     hardcode_direct=yes
  5224.     hardcode_shlibpath_var=no
  5225.     ;;
  5226.  
  5227.   newsos6)
  5228.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5229.     hardcode_direct=yes
  5230.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  5231.     hardcode_libdir_separator=:
  5232.     hardcode_shlibpath_var=no
  5233.     ;;
  5234.  
  5235.   openbsd*)
  5236.     hardcode_direct=yes
  5237.     hardcode_shlibpath_var=no
  5238.     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5239.       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
  5240.       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  5241.       export_dynamic_flag_spec='${wl}-E'
  5242.     else
  5243.       case "$host_os" in
  5244.       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  5245.     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5246.     hardcode_libdir_flag_spec='-R$libdir'
  5247.         ;;
  5248.       *)
  5249.         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
  5250.         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  5251.         ;;
  5252.       esac
  5253.     fi
  5254.     ;;
  5255.  
  5256.   os2*)
  5257.     hardcode_libdir_flag_spec='-L$libdir'
  5258.     hardcode_minus_L=yes
  5259.     allow_undefined_flag=unsupported
  5260.     archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  5261.     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  5262.     ;;
  5263.  
  5264.   osf3*)
  5265.     if test "$GCC" = yes; then
  5266.       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  5267.       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5268.     else
  5269.       allow_undefined_flag=' -expect_unresolved \*'
  5270.       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5271.     fi
  5272.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  5273.     hardcode_libdir_separator=:
  5274.     ;;
  5275.  
  5276.   osf4* | osf5*)    # as osf3* with the addition of -msym flag
  5277.     if test "$GCC" = yes; then
  5278.       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  5279.       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5280.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  5281.     else
  5282.       allow_undefined_flag=' -expect_unresolved \*'
  5283.       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5284.       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  5285.       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  5286.  
  5287.       #Both c and cxx compiler support -rpath directly
  5288.       hardcode_libdir_flag_spec='-rpath $libdir'
  5289.     fi
  5290.     hardcode_libdir_separator=:
  5291.     ;;
  5292.  
  5293.   sco3.2v5*)
  5294.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5295.     hardcode_shlibpath_var=no
  5296.     runpath_var=LD_RUN_PATH
  5297.     hardcode_runpath_var=yes
  5298.     export_dynamic_flag_spec='${wl}-Bexport'
  5299.     ;;
  5300.  
  5301.   solaris*)
  5302.     # gcc --version < 3.0 without binutils cannot create self contained
  5303.     # shared libraries reliably, requiring libgcc.a to resolve some of
  5304.     # the object symbols generated in some cases.  Libraries that use
  5305.     # assert need libgcc.a to resolve __eprintf, for example.  Linking
  5306.     # a copy of libgcc.a into every shared library to guarantee resolving
  5307.     # such symbols causes other problems:  According to Tim Van Holder
  5308.     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
  5309.     # (to the application) exception stack for one thing.
  5310.     no_undefined_flag=' -z defs'
  5311.     if test "$GCC" = yes; then
  5312.       case `$CC --version 2>/dev/null` in
  5313.       [12].*)
  5314.     cat <<EOF 1>&2
  5315.  
  5316. *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  5317. *** create self contained shared libraries on Solaris systems, without
  5318. *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
  5319. *** -no-undefined support, which will at least allow you to build shared
  5320. *** libraries.  However, you may find that when you link such libraries
  5321. *** into an application without using GCC, you have to manually add
  5322. *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
  5323. *** upgrade to a newer version of GCC.  Another option is to rebuild your
  5324. *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  5325.  
  5326. EOF
  5327.         no_undefined_flag=
  5328.     ;;
  5329.       esac
  5330.     fi
  5331.     # $CC -shared without GNU ld will not create a library from C++
  5332.     # object files and a static libstdc++, better avoid it by now
  5333.     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5334.     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5335.         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  5336.     hardcode_libdir_flag_spec='-R$libdir'
  5337.     hardcode_shlibpath_var=no
  5338.     case $host_os in
  5339.     solaris2.[0-5] | solaris2.[0-5].*) ;;
  5340.     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  5341.       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  5342.     esac
  5343.     link_all_deplibs=yes
  5344.     ;;
  5345.  
  5346.   sunos4*)
  5347.     if test "x$host_vendor" = xsequent; then
  5348.       # Use $CC to link under sequent, because it throws in some extra .o
  5349.       # files that make .init and .fini sections work.
  5350.       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5351.     else
  5352.       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5353.     fi
  5354.     hardcode_libdir_flag_spec='-L$libdir'
  5355.     hardcode_direct=yes
  5356.     hardcode_minus_L=yes
  5357.     hardcode_shlibpath_var=no
  5358.     ;;
  5359.  
  5360.   sysv4)
  5361.     if test "x$host_vendor" = xsno; then
  5362.       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5363.       hardcode_direct=yes # is this really true???
  5364.     else
  5365.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5366.       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  5367.     fi
  5368.     runpath_var='LD_RUN_PATH'
  5369.     hardcode_shlibpath_var=no
  5370.     ;;
  5371.  
  5372.   sysv4.3*)
  5373.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5374.     hardcode_shlibpath_var=no
  5375.     export_dynamic_flag_spec='-Bexport'
  5376.     ;;
  5377.  
  5378.   sysv5*)
  5379.     no_undefined_flag=' -z text'
  5380.     # $CC -shared without GNU ld will not create a library from C++
  5381.     # object files and a static libstdc++, better avoid it by now
  5382.     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5383.     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5384.         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  5385.     hardcode_libdir_flag_spec=
  5386.     hardcode_shlibpath_var=no
  5387.     runpath_var='LD_RUN_PATH'
  5388.     ;;
  5389.  
  5390.   uts4*)
  5391.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5392.     hardcode_libdir_flag_spec='-L$libdir'
  5393.     hardcode_shlibpath_var=no
  5394.     ;;
  5395.  
  5396.   dgux*)
  5397.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5398.     hardcode_libdir_flag_spec='-L$libdir'
  5399.     hardcode_shlibpath_var=no
  5400.     ;;
  5401.  
  5402.   sysv4*MP*)
  5403.     if test -d /usr/nec; then
  5404.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5405.       hardcode_shlibpath_var=no
  5406.       runpath_var=LD_RUN_PATH
  5407.       hardcode_runpath_var=yes
  5408.       ld_shlibs=yes
  5409.     fi
  5410.     ;;
  5411.  
  5412.   sysv4.2uw2*)
  5413.     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5414.     hardcode_direct=yes
  5415.     hardcode_minus_L=no
  5416.     hardcode_shlibpath_var=no
  5417.     hardcode_runpath_var=yes
  5418.     runpath_var=LD_RUN_PATH
  5419.     ;;
  5420.  
  5421.   sysv5uw7* | unixware7*)
  5422.     no_undefined_flag='${wl}-z ${wl}text'
  5423.     if test "$GCC" = yes; then
  5424.       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5425.     else
  5426.       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5427.     fi
  5428.     runpath_var='LD_RUN_PATH'
  5429.     hardcode_shlibpath_var=no
  5430.     ;;
  5431.  
  5432.   *)
  5433.     ld_shlibs=no
  5434.     ;;
  5435.   esac
  5436. fi
  5437. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  5438. echo "${ECHO_T}$ld_shlibs" >&6
  5439. test "$ld_shlibs" = no && can_build_shared=no
  5440.  
  5441. # Check hardcoding attributes.
  5442. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  5443. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  5444. hardcode_action=
  5445. if test -n "$hardcode_libdir_flag_spec" || \
  5446.    test -n "$runpath_var"; then
  5447.  
  5448.   # We can hardcode non-existant directories.
  5449.   if test "$hardcode_direct" != no &&
  5450.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  5451.      # have to relink, otherwise we might link with an installed library
  5452.      # when we should be linking with a yet-to-be-installed one
  5453.      ## test "$hardcode_shlibpath_var" != no &&
  5454.      test "$hardcode_minus_L" != no; then
  5455.     # Linking always hardcodes the temporary library directory.
  5456.     hardcode_action=relink
  5457.   else
  5458.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  5459.     hardcode_action=immediate
  5460.   fi
  5461. else
  5462.   # We cannot hardcode anything, or else we can only hardcode existing
  5463.   # directories.
  5464.   hardcode_action=unsupported
  5465. fi
  5466. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  5467. echo "${ECHO_T}$hardcode_action" >&6
  5468.  
  5469. striplib=
  5470. old_striplib=
  5471. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  5472. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  5473. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  5474.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  5475.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  5476.   echo "$as_me:$LINENO: result: yes" >&5
  5477. echo "${ECHO_T}yes" >&6
  5478. else
  5479.   echo "$as_me:$LINENO: result: no" >&5
  5480. echo "${ECHO_T}no" >&6
  5481. fi
  5482.  
  5483. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5484. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5485.  
  5486. # PORTME Fill in your ld.so characteristics
  5487. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  5488. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  5489. library_names_spec=
  5490. libname_spec='lib$name'
  5491. soname_spec=
  5492. postinstall_cmds=
  5493. postuninstall_cmds=
  5494. finish_cmds=
  5495. finish_eval=
  5496. shlibpath_var=
  5497. shlibpath_overrides_runpath=unknown
  5498. version_type=none
  5499. dynamic_linker="$host_os ld.so"
  5500. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  5501. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  5502.  
  5503. case $host_os in
  5504. aix3*)
  5505.   version_type=linux
  5506.   library_names_spec='${libname}${release}.so$versuffix $libname.a'
  5507.   shlibpath_var=LIBPATH
  5508.  
  5509.   # AIX has no versioning support, so we append a major version to the name.
  5510.   soname_spec='${libname}${release}.so$major'
  5511.   ;;
  5512.  
  5513. aix4* | aix5*)
  5514.   version_type=linux
  5515.   if test "$host_cpu" = ia64; then
  5516.     # AIX 5 supports IA64
  5517.     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  5518.     shlibpath_var=LD_LIBRARY_PATH
  5519.   else
  5520.     # With GCC up to 2.95.x, collect2 would create an import file
  5521.     # for dependence libraries.  The import file would start with
  5522.     # the line `#! .'.  This would cause the generated library to
  5523.     # depend on `.', always an invalid library.  This was fixed in
  5524.     # development snapshots of GCC prior to 3.0.
  5525.     case $host_os in
  5526.       aix4 | aix4.[01] | aix4.[01].*)
  5527.     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  5528.          echo ' yes '
  5529.          echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  5530.       :
  5531.     else
  5532.       can_build_shared=no
  5533.     fi
  5534.     ;;
  5535.     esac
  5536.     # AIX (on Power*) has no versioning support, so currently we can
  5537.     # not hardcode correct soname into executable. Probably we can
  5538.     # add versioning support to collect2, so additional links can
  5539.     # be useful in future.
  5540.     if test "$aix_use_runtimelinking" = yes; then
  5541.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  5542.       # instead of lib<name>.a to let people know that these are not
  5543.       # typical AIX shared libraries.
  5544.       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5545.     else
  5546.       # We preserve .a as extension for shared libraries through AIX4.2
  5547.       # and later when we are not doing run time linking.
  5548.       library_names_spec='${libname}${release}.a $libname.a'
  5549.       soname_spec='${libname}${release}.so$major'
  5550.     fi
  5551.     shlibpath_var=LIBPATH
  5552.   fi
  5553.   ;;
  5554.  
  5555. amigaos*)
  5556.   library_names_spec='$libname.ixlibrary $libname.a'
  5557.   # Create ${libname}_ixlibrary.a entries in /sys/libs.
  5558.   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
  5559.   ;;
  5560.  
  5561. beos*)
  5562.   library_names_spec='${libname}.so'
  5563.   dynamic_linker="$host_os ld.so"
  5564.   shlibpath_var=LIBRARY_PATH
  5565.   ;;
  5566.  
  5567. bsdi4*)
  5568.   version_type=linux
  5569.   need_version=no
  5570.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5571.   soname_spec='${libname}${release}.so$major'
  5572.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  5573.   shlibpath_var=LD_LIBRARY_PATH
  5574.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  5575.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  5576.   export_dynamic_flag_spec=-rdynamic
  5577.   # the default ld.so.conf also contains /usr/contrib/lib and
  5578.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  5579.   # libtool to hard-code these into programs
  5580.   ;;
  5581.  
  5582. cygwin* | mingw* | pw32*)
  5583.   version_type=windows
  5584.   need_version=no
  5585.   need_lib_prefix=no
  5586.   case $GCC,$host_os in
  5587.   yes,cygwin*)
  5588.     library_names_spec='$libname.dll.a'
  5589.     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  5590.     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  5591.       dldir=$destdir/`dirname \$dlpath`~
  5592.       test -d \$dldir || mkdir -p \$dldir~
  5593.       $install_prog .libs/$dlname \$dldir/$dlname'
  5594.     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  5595.       dlpath=$dir/\$dldll~
  5596.        $rm \$dlpath'
  5597.     ;;
  5598.   yes,mingw*)
  5599.     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  5600.     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
  5601.     ;;
  5602.   yes,pw32*)
  5603.     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
  5604.     ;;
  5605.   *)
  5606.     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  5607.     ;;
  5608.   esac
  5609.   dynamic_linker='Win32 ld.exe'
  5610.   # FIXME: first we should search . and the directory the executable is in
  5611.   shlibpath_var=PATH
  5612.   ;;
  5613.  
  5614. darwin* | rhapsody*)
  5615.   dynamic_linker="$host_os dyld"
  5616.   version_type=darwin
  5617.   need_lib_prefix=no
  5618.   need_version=no
  5619.   # FIXME: Relying on posixy $() will cause problems for
  5620.   #        cross-compilation, but unfortunately the echo tests do not
  5621.   #        yet detect zsh echo's removal of \ escapes.
  5622.   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  5623.   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  5624.   shlibpath_overrides_runpath=yes
  5625.   shlibpath_var=DYLD_LIBRARY_PATH
  5626.   ;;
  5627.  
  5628. freebsd1*)
  5629.   dynamic_linker=no
  5630.   ;;
  5631.  
  5632. freebsd*)
  5633.   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  5634.   version_type=freebsd-$objformat
  5635.   case $version_type in
  5636.     freebsd-elf*)
  5637.       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  5638.       need_version=no
  5639.       need_lib_prefix=no
  5640.       ;;
  5641.     freebsd-*)
  5642.       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  5643.       need_version=yes
  5644.       ;;
  5645.   esac
  5646.   shlibpath_var=LD_LIBRARY_PATH
  5647.   case $host_os in
  5648.   freebsd2*)
  5649.     shlibpath_overrides_runpath=yes
  5650.     ;;
  5651.   *)
  5652.     shlibpath_overrides_runpath=no
  5653.     hardcode_into_libs=yes
  5654.     ;;
  5655.   esac
  5656.   ;;
  5657.  
  5658. gnu*)
  5659.   version_type=linux
  5660.   need_lib_prefix=no
  5661.   need_version=no
  5662.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  5663.   soname_spec='${libname}${release}.so$major'
  5664.   shlibpath_var=LD_LIBRARY_PATH
  5665.   hardcode_into_libs=yes
  5666.   ;;
  5667.  
  5668. hpux9* | hpux10* | hpux11*)
  5669.   # Give a soname corresponding to the major version so that dld.sl refuses to
  5670.   # link against other versions.
  5671.   dynamic_linker="$host_os dld.sl"
  5672.   version_type=sunos
  5673.   need_lib_prefix=no
  5674.   need_version=no
  5675.   shlibpath_var=SHLIB_PATH
  5676.   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  5677.   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  5678.   soname_spec='${libname}${release}.sl$major'
  5679.   # HP-UX runs *really* slowly unless shared libraries are mode 555.
  5680.   postinstall_cmds='chmod 555 $lib'
  5681.   ;;
  5682.  
  5683. irix5* | irix6* | nonstopux*)
  5684.   case $host_os in
  5685.     nonstopux*) version_type=nonstopux ;;
  5686.     *)          version_type=irix ;;
  5687.   esac
  5688.   need_lib_prefix=no
  5689.   need_version=no
  5690.   soname_spec='${libname}${release}.so$major'
  5691.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  5692.   case $host_os in
  5693.   irix5* | nonstopux*)
  5694.     libsuff= shlibsuff=
  5695.     ;;
  5696.   *)
  5697.     case $LD in # libtool.m4 will add one of these switches to LD
  5698.     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  5699.     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  5700.     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  5701.     *) libsuff= shlibsuff= libmagic=never-match;;
  5702.     esac
  5703.     ;;
  5704.   esac
  5705.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  5706.   shlibpath_overrides_runpath=no
  5707.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  5708.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  5709.   ;;
  5710.  
  5711. # No shared lib support for Linux oldld, aout, or coff.
  5712. linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  5713.   dynamic_linker=no
  5714.   ;;
  5715.  
  5716. # This must be Linux ELF.
  5717. linux-gnu*)
  5718.   version_type=linux
  5719.   need_lib_prefix=no
  5720.   need_version=no
  5721.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5722.   soname_spec='${libname}${release}.so$major'
  5723.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  5724.   shlibpath_var=LD_LIBRARY_PATH
  5725.   shlibpath_overrides_runpath=no
  5726.   # This implies no fast_install, which is unacceptable.
  5727.   # Some rework will be needed to allow for fast_install
  5728.   # before this can be enabled.
  5729.   hardcode_into_libs=yes
  5730.  
  5731.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  5732.   # powerpc, because MkLinux only supported shared libraries with the
  5733.   # GNU dynamic linker.  Since this was broken with cross compilers,
  5734.   # most powerpc-linux boxes support dynamic linking these days and
  5735.   # people can always --disable-shared, the test was removed, and we
  5736.   # assume the GNU/Linux dynamic linker is in use.
  5737.   dynamic_linker='GNU/Linux ld.so'
  5738.   ;;
  5739.  
  5740. netbsd*)
  5741.   version_type=sunos
  5742.   need_lib_prefix=no
  5743.   need_version=no
  5744.   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5745.     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  5746.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  5747.     dynamic_linker='NetBSD (a.out) ld.so'
  5748.   else
  5749.     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  5750.     soname_spec='${libname}${release}.so$major'
  5751.     dynamic_linker='NetBSD ld.elf_so'
  5752.   fi
  5753.   shlibpath_var=LD_LIBRARY_PATH
  5754.   shlibpath_overrides_runpath=yes
  5755.   hardcode_into_libs=yes
  5756.   ;;
  5757.  
  5758. newsos6)
  5759.   version_type=linux
  5760.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5761.   shlibpath_var=LD_LIBRARY_PATH
  5762.   shlibpath_overrides_runpath=yes
  5763.   ;;
  5764.  
  5765. openbsd*)
  5766.   version_type=sunos
  5767.   need_lib_prefix=no
  5768.   need_version=no
  5769.   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5770.     case "$host_os" in
  5771.     openbsd2.[89] | openbsd2.[89].*)
  5772.       shlibpath_overrides_runpath=no
  5773.       ;;
  5774.     *)
  5775.       shlibpath_overrides_runpath=yes
  5776.       ;;
  5777.     esac
  5778.   else
  5779.     shlibpath_overrides_runpath=yes
  5780.   fi
  5781.   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  5782.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  5783.   shlibpath_var=LD_LIBRARY_PATH
  5784.   ;;
  5785.  
  5786. os2*)
  5787.   libname_spec='$name'
  5788.   need_lib_prefix=no
  5789.   library_names_spec='$libname.dll $libname.a'
  5790.   dynamic_linker='OS/2 ld.exe'
  5791.   shlibpath_var=LIBPATH
  5792.   ;;
  5793.  
  5794. osf3* | osf4* | osf5*)
  5795.   version_type=osf
  5796.   need_version=no
  5797.   need_lib_prefix=no
  5798.   soname_spec='${libname}${release}.so'
  5799.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  5800.   shlibpath_var=LD_LIBRARY_PATH
  5801.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  5802.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  5803.   ;;
  5804.  
  5805. sco3.2v5*)
  5806.   version_type=osf
  5807.   soname_spec='${libname}${release}.so$major'
  5808.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5809.   shlibpath_var=LD_LIBRARY_PATH
  5810.   ;;
  5811.  
  5812. solaris*)
  5813.   version_type=linux
  5814.   need_lib_prefix=no
  5815.   need_version=no
  5816.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5817.   soname_spec='${libname}${release}.so$major'
  5818.   shlibpath_var=LD_LIBRARY_PATH
  5819.   shlibpath_overrides_runpath=yes
  5820.   hardcode_into_libs=yes
  5821.   # ldd complains unless libraries are executable
  5822.   postinstall_cmds='chmod +x $lib'
  5823.   ;;
  5824.  
  5825. sunos4*)
  5826.   version_type=sunos
  5827.   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  5828.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  5829.   shlibpath_var=LD_LIBRARY_PATH
  5830.   shlibpath_overrides_runpath=yes
  5831.   if test "$with_gnu_ld" = yes; then
  5832.     need_lib_prefix=no
  5833.   fi
  5834.   need_version=yes
  5835.   ;;
  5836.  
  5837. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5838.   version_type=linux
  5839.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5840.   soname_spec='${libname}${release}.so$major'
  5841.   shlibpath_var=LD_LIBRARY_PATH
  5842.   case $host_vendor in
  5843.     sni)
  5844.       shlibpath_overrides_runpath=no
  5845.       ;;
  5846.     motorola)
  5847.       need_lib_prefix=no
  5848.       need_version=no
  5849.       shlibpath_overrides_runpath=no
  5850.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  5851.       ;;
  5852.   esac
  5853.   ;;
  5854.  
  5855. uts4*)
  5856.   version_type=linux
  5857.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5858.   soname_spec='${libname}${release}.so$major'
  5859.   shlibpath_var=LD_LIBRARY_PATH
  5860.   ;;
  5861.  
  5862. dgux*)
  5863.   version_type=linux
  5864.   need_lib_prefix=no
  5865.   need_version=no
  5866.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5867.   soname_spec='${libname}${release}.so$major'
  5868.   shlibpath_var=LD_LIBRARY_PATH
  5869.   ;;
  5870.  
  5871. sysv4*MP*)
  5872.   if test -d /usr/nec ;then
  5873.     version_type=linux
  5874.     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  5875.     soname_spec='$libname.so.$major'
  5876.     shlibpath_var=LD_LIBRARY_PATH
  5877.   fi
  5878.   ;;
  5879.  
  5880. *)
  5881.   dynamic_linker=no
  5882.   ;;
  5883. esac
  5884. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  5885. echo "${ECHO_T}$dynamic_linker" >&6
  5886. test "$dynamic_linker" = no && can_build_shared=no
  5887.  
  5888. # Report the final consequences.
  5889. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  5890. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  5891. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  5892. echo "${ECHO_T}$can_build_shared" >&6
  5893.  
  5894. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  5895. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  5896. test "$can_build_shared" = "no" && enable_shared=no
  5897.  
  5898. # On AIX, shared libraries and static libraries use the same namespace, and
  5899. # are all built from PIC.
  5900. case "$host_os" in
  5901. aix3*)
  5902.   test "$enable_shared" = yes && enable_static=no
  5903.   if test -n "$RANLIB"; then
  5904.     archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5905.     postinstall_cmds='$RANLIB $lib'
  5906.   fi
  5907.   ;;
  5908.  
  5909. aix4*)
  5910.   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5911.     test "$enable_shared" = yes && enable_static=no
  5912.   fi
  5913.   ;;
  5914. esac
  5915. echo "$as_me:$LINENO: result: $enable_shared" >&5
  5916. echo "${ECHO_T}$enable_shared" >&6
  5917.  
  5918. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  5919. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  5920. # Make sure either enable_shared or enable_static is yes.
  5921. test "$enable_shared" = yes || enable_static=yes
  5922. echo "$as_me:$LINENO: result: $enable_static" >&5
  5923. echo "${ECHO_T}$enable_static" >&6
  5924.  
  5925. if test "$hardcode_action" = relink; then
  5926.   # Fast installation is not supported
  5927.   enable_fast_install=no
  5928. elif test "$shlibpath_overrides_runpath" = yes ||
  5929.      test "$enable_shared" = no; then
  5930.   # Fast installation is not necessary
  5931.   enable_fast_install=needless
  5932. fi
  5933.  
  5934. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  5935. if test "$GCC" = yes; then
  5936.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  5937. fi
  5938.  
  5939. if test "x$enable_dlopen" != xyes; then
  5940.   enable_dlopen=unknown
  5941.   enable_dlopen_self=unknown
  5942.   enable_dlopen_self_static=unknown
  5943. else
  5944.   lt_cv_dlopen=no
  5945.   lt_cv_dlopen_libs=
  5946.  
  5947.   case $host_os in
  5948.   beos*)
  5949.     lt_cv_dlopen="load_add_on"
  5950.     lt_cv_dlopen_libs=
  5951.     lt_cv_dlopen_self=yes
  5952.     ;;
  5953.  
  5954.   cygwin* | mingw* | pw32*)
  5955.     lt_cv_dlopen="LoadLibrary"
  5956.     lt_cv_dlopen_libs=
  5957.    ;;
  5958.  
  5959.   *)
  5960.     echo "$as_me:$LINENO: checking for shl_load" >&5
  5961. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  5962. if test "${ac_cv_func_shl_load+set}" = set; then
  5963.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5964. else
  5965.   cat >conftest.$ac_ext <<_ACEOF
  5966. #line $LINENO "configure"
  5967. #include "confdefs.h"
  5968. /* System header to define __stub macros and hopefully few prototypes,
  5969.     which can conflict with char shl_load (); below.  */
  5970. #include <assert.h>
  5971. /* Override any gcc2 internal prototype to avoid an error.  */
  5972. #ifdef __cplusplus
  5973. extern "C"
  5974. #endif
  5975. /* We use char because int might match the return type of a gcc2
  5976.    builtin and then its argument prototype would still apply.  */
  5977. char shl_load ();
  5978. char (*f) ();
  5979.  
  5980. #ifdef F77_DUMMY_MAIN
  5981. #  ifdef __cplusplus
  5982.      extern "C"
  5983. #  endif
  5984.    int F77_DUMMY_MAIN() { return 1; }
  5985. #endif
  5986. int
  5987. main ()
  5988. {
  5989. /* The GNU C library defines this for functions which it implements
  5990.     to always fail with ENOSYS.  Some functions are actually named
  5991.     something starting with __ and the normal name is an alias.  */
  5992. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  5993. choke me
  5994. #else
  5995. f = shl_load;
  5996. #endif
  5997.  
  5998.   ;
  5999.   return 0;
  6000. }
  6001. _ACEOF
  6002. rm -f conftest.$ac_objext conftest$ac_exeext
  6003. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6004.   (eval $ac_link) 2>&5
  6005.   ac_status=$?
  6006.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6007.   (exit $ac_status); } &&
  6008.          { ac_try='test -s conftest$ac_exeext'
  6009.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6010.   (eval $ac_try) 2>&5
  6011.   ac_status=$?
  6012.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6013.   (exit $ac_status); }; }; then
  6014.   ac_cv_func_shl_load=yes
  6015. else
  6016.   echo "$as_me: failed program was:" >&5
  6017. cat conftest.$ac_ext >&5
  6018. ac_cv_func_shl_load=no
  6019. fi
  6020. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6021. fi
  6022. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  6023. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  6024. if test $ac_cv_func_shl_load = yes; then
  6025.   lt_cv_dlopen="shl_load"
  6026. else
  6027.   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  6028. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  6029. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  6030.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6031. else
  6032.   ac_check_lib_save_LIBS=$LIBS
  6033. LIBS="-ldld  $LIBS"
  6034. cat >conftest.$ac_ext <<_ACEOF
  6035. #line $LINENO "configure"
  6036. #include "confdefs.h"
  6037.  
  6038. /* Override any gcc2 internal prototype to avoid an error.  */
  6039. #ifdef __cplusplus
  6040. extern "C"
  6041. #endif
  6042. /* We use char because int might match the return type of a gcc2
  6043.    builtin and then its argument prototype would still apply.  */
  6044. char shl_load ();
  6045. #ifdef F77_DUMMY_MAIN
  6046. #  ifdef __cplusplus
  6047.      extern "C"
  6048. #  endif
  6049.    int F77_DUMMY_MAIN() { return 1; }
  6050. #endif
  6051. int
  6052. main ()
  6053. {
  6054. shl_load ();
  6055.   ;
  6056.   return 0;
  6057. }
  6058. _ACEOF
  6059. rm -f conftest.$ac_objext conftest$ac_exeext
  6060. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6061.   (eval $ac_link) 2>&5
  6062.   ac_status=$?
  6063.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6064.   (exit $ac_status); } &&
  6065.          { ac_try='test -s conftest$ac_exeext'
  6066.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6067.   (eval $ac_try) 2>&5
  6068.   ac_status=$?
  6069.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6070.   (exit $ac_status); }; }; then
  6071.   ac_cv_lib_dld_shl_load=yes
  6072. else
  6073.   echo "$as_me: failed program was:" >&5
  6074. cat conftest.$ac_ext >&5
  6075. ac_cv_lib_dld_shl_load=no
  6076. fi
  6077. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6078. LIBS=$ac_check_lib_save_LIBS
  6079. fi
  6080. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  6081. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  6082. if test $ac_cv_lib_dld_shl_load = yes; then
  6083.   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  6084. else
  6085.   echo "$as_me:$LINENO: checking for dlopen" >&5
  6086. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  6087. if test "${ac_cv_func_dlopen+set}" = set; then
  6088.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6089. else
  6090.   cat >conftest.$ac_ext <<_ACEOF
  6091. #line $LINENO "configure"
  6092. #include "confdefs.h"
  6093. /* System header to define __stub macros and hopefully few prototypes,
  6094.     which can conflict with char dlopen (); below.  */
  6095. #include <assert.h>
  6096. /* Override any gcc2 internal prototype to avoid an error.  */
  6097. #ifdef __cplusplus
  6098. extern "C"
  6099. #endif
  6100. /* We use char because int might match the return type of a gcc2
  6101.    builtin and then its argument prototype would still apply.  */
  6102. char dlopen ();
  6103. char (*f) ();
  6104.  
  6105. #ifdef F77_DUMMY_MAIN
  6106. #  ifdef __cplusplus
  6107.      extern "C"
  6108. #  endif
  6109.    int F77_DUMMY_MAIN() { return 1; }
  6110. #endif
  6111. int
  6112. main ()
  6113. {
  6114. /* The GNU C library defines this for functions which it implements
  6115.     to always fail with ENOSYS.  Some functions are actually named
  6116.     something starting with __ and the normal name is an alias.  */
  6117. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  6118. choke me
  6119. #else
  6120. f = dlopen;
  6121. #endif
  6122.  
  6123.   ;
  6124.   return 0;
  6125. }
  6126. _ACEOF
  6127. rm -f conftest.$ac_objext conftest$ac_exeext
  6128. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6129.   (eval $ac_link) 2>&5
  6130.   ac_status=$?
  6131.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6132.   (exit $ac_status); } &&
  6133.          { ac_try='test -s conftest$ac_exeext'
  6134.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6135.   (eval $ac_try) 2>&5
  6136.   ac_status=$?
  6137.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6138.   (exit $ac_status); }; }; then
  6139.   ac_cv_func_dlopen=yes
  6140. else
  6141.   echo "$as_me: failed program was:" >&5
  6142. cat conftest.$ac_ext >&5
  6143. ac_cv_func_dlopen=no
  6144. fi
  6145. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6146. fi
  6147. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  6148. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  6149. if test $ac_cv_func_dlopen = yes; then
  6150.   lt_cv_dlopen="dlopen"
  6151. else
  6152.   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  6153. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  6154. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  6155.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6156. else
  6157.   ac_check_lib_save_LIBS=$LIBS
  6158. LIBS="-ldl  $LIBS"
  6159. cat >conftest.$ac_ext <<_ACEOF
  6160. #line $LINENO "configure"
  6161. #include "confdefs.h"
  6162.  
  6163. /* Override any gcc2 internal prototype to avoid an error.  */
  6164. #ifdef __cplusplus
  6165. extern "C"
  6166. #endif
  6167. /* We use char because int might match the return type of a gcc2
  6168.    builtin and then its argument prototype would still apply.  */
  6169. char dlopen ();
  6170. #ifdef F77_DUMMY_MAIN
  6171. #  ifdef __cplusplus
  6172.      extern "C"
  6173. #  endif
  6174.    int F77_DUMMY_MAIN() { return 1; }
  6175. #endif
  6176. int
  6177. main ()
  6178. {
  6179. dlopen ();
  6180.   ;
  6181.   return 0;
  6182. }
  6183. _ACEOF
  6184. rm -f conftest.$ac_objext conftest$ac_exeext
  6185. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6186.   (eval $ac_link) 2>&5
  6187.   ac_status=$?
  6188.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6189.   (exit $ac_status); } &&
  6190.          { ac_try='test -s conftest$ac_exeext'
  6191.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6192.   (eval $ac_try) 2>&5
  6193.   ac_status=$?
  6194.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6195.   (exit $ac_status); }; }; then
  6196.   ac_cv_lib_dl_dlopen=yes
  6197. else
  6198.   echo "$as_me: failed program was:" >&5
  6199. cat conftest.$ac_ext >&5
  6200. ac_cv_lib_dl_dlopen=no
  6201. fi
  6202. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6203. LIBS=$ac_check_lib_save_LIBS
  6204. fi
  6205. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  6206. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  6207. if test $ac_cv_lib_dl_dlopen = yes; then
  6208.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  6209. else
  6210.   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  6211. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  6212. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  6213.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6214. else
  6215.   ac_check_lib_save_LIBS=$LIBS
  6216. LIBS="-lsvld  $LIBS"
  6217. cat >conftest.$ac_ext <<_ACEOF
  6218. #line $LINENO "configure"
  6219. #include "confdefs.h"
  6220.  
  6221. /* Override any gcc2 internal prototype to avoid an error.  */
  6222. #ifdef __cplusplus
  6223. extern "C"
  6224. #endif
  6225. /* We use char because int might match the return type of a gcc2
  6226.    builtin and then its argument prototype would still apply.  */
  6227. char dlopen ();
  6228. #ifdef F77_DUMMY_MAIN
  6229. #  ifdef __cplusplus
  6230.      extern "C"
  6231. #  endif
  6232.    int F77_DUMMY_MAIN() { return 1; }
  6233. #endif
  6234. int
  6235. main ()
  6236. {
  6237. dlopen ();
  6238.   ;
  6239.   return 0;
  6240. }
  6241. _ACEOF
  6242. rm -f conftest.$ac_objext conftest$ac_exeext
  6243. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6244.   (eval $ac_link) 2>&5
  6245.   ac_status=$?
  6246.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6247.   (exit $ac_status); } &&
  6248.          { ac_try='test -s conftest$ac_exeext'
  6249.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6250.   (eval $ac_try) 2>&5
  6251.   ac_status=$?
  6252.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6253.   (exit $ac_status); }; }; then
  6254.   ac_cv_lib_svld_dlopen=yes
  6255. else
  6256.   echo "$as_me: failed program was:" >&5
  6257. cat conftest.$ac_ext >&5
  6258. ac_cv_lib_svld_dlopen=no
  6259. fi
  6260. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6261. LIBS=$ac_check_lib_save_LIBS
  6262. fi
  6263. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  6264. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  6265. if test $ac_cv_lib_svld_dlopen = yes; then
  6266.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  6267. else
  6268.   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  6269. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  6270. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  6271.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6272. else
  6273.   ac_check_lib_save_LIBS=$LIBS
  6274. LIBS="-ldld  $LIBS"
  6275. cat >conftest.$ac_ext <<_ACEOF
  6276. #line $LINENO "configure"
  6277. #include "confdefs.h"
  6278.  
  6279. /* Override any gcc2 internal prototype to avoid an error.  */
  6280. #ifdef __cplusplus
  6281. extern "C"
  6282. #endif
  6283. /* We use char because int might match the return type of a gcc2
  6284.    builtin and then its argument prototype would still apply.  */
  6285. char dld_link ();
  6286. #ifdef F77_DUMMY_MAIN
  6287. #  ifdef __cplusplus
  6288.      extern "C"
  6289. #  endif
  6290.    int F77_DUMMY_MAIN() { return 1; }
  6291. #endif
  6292. int
  6293. main ()
  6294. {
  6295. dld_link ();
  6296.   ;
  6297.   return 0;
  6298. }
  6299. _ACEOF
  6300. rm -f conftest.$ac_objext conftest$ac_exeext
  6301. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6302.   (eval $ac_link) 2>&5
  6303.   ac_status=$?
  6304.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6305.   (exit $ac_status); } &&
  6306.          { ac_try='test -s conftest$ac_exeext'
  6307.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6308.   (eval $ac_try) 2>&5
  6309.   ac_status=$?
  6310.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6311.   (exit $ac_status); }; }; then
  6312.   ac_cv_lib_dld_dld_link=yes
  6313. else
  6314.   echo "$as_me: failed program was:" >&5
  6315. cat conftest.$ac_ext >&5
  6316. ac_cv_lib_dld_dld_link=no
  6317. fi
  6318. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6319. LIBS=$ac_check_lib_save_LIBS
  6320. fi
  6321. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  6322. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  6323. if test $ac_cv_lib_dld_dld_link = yes; then
  6324.   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  6325. fi
  6326.  
  6327.  
  6328. fi
  6329.  
  6330.  
  6331. fi
  6332.  
  6333.  
  6334. fi
  6335.  
  6336.  
  6337. fi
  6338.  
  6339.  
  6340. fi
  6341.  
  6342.     ;;
  6343.   esac
  6344.  
  6345.   if test "x$lt_cv_dlopen" != xno; then
  6346.     enable_dlopen=yes
  6347.   else
  6348.     enable_dlopen=no
  6349.   fi
  6350.  
  6351.   case $lt_cv_dlopen in
  6352.   dlopen)
  6353.     save_CPPFLAGS="$CPPFLAGS"
  6354.         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  6355.  
  6356.     save_LDFLAGS="$LDFLAGS"
  6357.     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  6358.  
  6359.     save_LIBS="$LIBS"
  6360.     LIBS="$lt_cv_dlopen_libs $LIBS"
  6361.  
  6362.     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  6363. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  6364. if test "${lt_cv_dlopen_self+set}" = set; then
  6365.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6366. else
  6367.         if test "$cross_compiling" = yes; then :
  6368.   lt_cv_dlopen_self=cross
  6369. else
  6370.     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  6371.   lt_status=$lt_dlunknown
  6372.   cat > conftest.$ac_ext <<EOF
  6373. #line 6373 "configure"
  6374. #include "confdefs.h"
  6375.  
  6376. #if HAVE_DLFCN_H
  6377. #include <dlfcn.h>
  6378. #endif
  6379.  
  6380. #include <stdio.h>
  6381.  
  6382. #ifdef RTLD_GLOBAL
  6383. #  define LT_DLGLOBAL        RTLD_GLOBAL
  6384. #else
  6385. #  ifdef DL_GLOBAL
  6386. #    define LT_DLGLOBAL        DL_GLOBAL
  6387. #  else
  6388. #    define LT_DLGLOBAL        0
  6389. #  endif
  6390. #endif
  6391.  
  6392. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  6393.    find out it does not work in some platform. */
  6394. #ifndef LT_DLLAZY_OR_NOW
  6395. #  ifdef RTLD_LAZY
  6396. #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
  6397. #  else
  6398. #    ifdef DL_LAZY
  6399. #      define LT_DLLAZY_OR_NOW        DL_LAZY
  6400. #    else
  6401. #      ifdef RTLD_NOW
  6402. #        define LT_DLLAZY_OR_NOW    RTLD_NOW
  6403. #      else
  6404. #        ifdef DL_NOW
  6405. #          define LT_DLLAZY_OR_NOW    DL_NOW
  6406. #        else
  6407. #          define LT_DLLAZY_OR_NOW    0
  6408. #        endif
  6409. #      endif
  6410. #    endif
  6411. #  endif
  6412. #endif
  6413.  
  6414. #ifdef __cplusplus
  6415. extern "C" void exit (int);
  6416. #endif
  6417.  
  6418. void fnord() { int i=42;}
  6419. int main ()
  6420. {
  6421.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  6422.   int status = $lt_dlunknown;
  6423.  
  6424.   if (self)
  6425.     {
  6426.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  6427.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  6428.       /* dlclose (self); */
  6429.     }
  6430.  
  6431.     exit (status);
  6432. }
  6433. EOF
  6434.   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6435.   (eval $ac_link) 2>&5
  6436.   ac_status=$?
  6437.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6438.   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  6439.     (./conftest; exit; ) 2>/dev/null
  6440.     lt_status=$?
  6441.     case x$lt_status in
  6442.       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  6443.       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  6444.       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  6445.     esac
  6446.   else :
  6447.     # compilation failed
  6448.     lt_cv_dlopen_self=no
  6449.   fi
  6450. fi
  6451. rm -fr conftest*
  6452.  
  6453.  
  6454. fi
  6455. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  6456. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  6457.  
  6458.     if test "x$lt_cv_dlopen_self" = xyes; then
  6459.       LDFLAGS="$LDFLAGS $link_static_flag"
  6460.       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  6461. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  6462. if test "${lt_cv_dlopen_self_static+set}" = set; then
  6463.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6464. else
  6465.         if test "$cross_compiling" = yes; then :
  6466.   lt_cv_dlopen_self_static=cross
  6467. else
  6468.     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  6469.   lt_status=$lt_dlunknown
  6470.   cat > conftest.$ac_ext <<EOF
  6471. #line 6471 "configure"
  6472. #include "confdefs.h"
  6473.  
  6474. #if HAVE_DLFCN_H
  6475. #include <dlfcn.h>
  6476. #endif
  6477.  
  6478. #include <stdio.h>
  6479.  
  6480. #ifdef RTLD_GLOBAL
  6481. #  define LT_DLGLOBAL        RTLD_GLOBAL
  6482. #else
  6483. #  ifdef DL_GLOBAL
  6484. #    define LT_DLGLOBAL        DL_GLOBAL
  6485. #  else
  6486. #    define LT_DLGLOBAL        0
  6487. #  endif
  6488. #endif
  6489.  
  6490. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  6491.    find out it does not work in some platform. */
  6492. #ifndef LT_DLLAZY_OR_NOW
  6493. #  ifdef RTLD_LAZY
  6494. #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
  6495. #  else
  6496. #    ifdef DL_LAZY
  6497. #      define LT_DLLAZY_OR_NOW        DL_LAZY
  6498. #    else
  6499. #      ifdef RTLD_NOW
  6500. #        define LT_DLLAZY_OR_NOW    RTLD_NOW
  6501. #      else
  6502. #        ifdef DL_NOW
  6503. #          define LT_DLLAZY_OR_NOW    DL_NOW
  6504. #        else
  6505. #          define LT_DLLAZY_OR_NOW    0
  6506. #        endif
  6507. #      endif
  6508. #    endif
  6509. #  endif
  6510. #endif
  6511.  
  6512. #ifdef __cplusplus
  6513. extern "C" void exit (int);
  6514. #endif
  6515.  
  6516. void fnord() { int i=42;}
  6517. int main ()
  6518. {
  6519.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  6520.   int status = $lt_dlunknown;
  6521.  
  6522.   if (self)
  6523.     {
  6524.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  6525.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  6526.       /* dlclose (self); */
  6527.     }
  6528.  
  6529.     exit (status);
  6530. }
  6531. EOF
  6532.   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6533.   (eval $ac_link) 2>&5
  6534.   ac_status=$?
  6535.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6536.   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  6537.     (./conftest; exit; ) 2>/dev/null
  6538.     lt_status=$?
  6539.     case x$lt_status in
  6540.       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  6541.       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  6542.       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  6543.     esac
  6544.   else :
  6545.     # compilation failed
  6546.     lt_cv_dlopen_self_static=no
  6547.   fi
  6548. fi
  6549. rm -fr conftest*
  6550.  
  6551.  
  6552. fi
  6553. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  6554. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  6555.     fi
  6556.  
  6557.     CPPFLAGS="$save_CPPFLAGS"
  6558.     LDFLAGS="$save_LDFLAGS"
  6559.     LIBS="$save_LIBS"
  6560.     ;;
  6561.   esac
  6562.  
  6563.   case $lt_cv_dlopen_self in
  6564.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  6565.   *) enable_dlopen_self=unknown ;;
  6566.   esac
  6567.  
  6568.   case $lt_cv_dlopen_self_static in
  6569.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  6570.   *) enable_dlopen_self_static=unknown ;;
  6571.   esac
  6572. fi
  6573.  
  6574.  
  6575. if test "$enable_shared" = yes && test "$GCC" = yes; then
  6576.   case $archive_cmds in
  6577.   *'~'*)
  6578.     # FIXME: we may have to deal with multi-command sequences.
  6579.     ;;
  6580.   '$CC '*)
  6581.     # Test whether the compiler implicitly links with -lc since on some
  6582.     # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6583.     # to ld, don't add -lc before -lgcc.
  6584.     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  6585. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  6586.     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
  6587.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6588. else
  6589.   $rm conftest*
  6590.     echo 'static int dummy;' > conftest.$ac_ext
  6591.  
  6592.     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6593.   (eval $ac_compile) 2>&5
  6594.   ac_status=$?
  6595.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6596.   (exit $ac_status); }; then
  6597.       soname=conftest
  6598.       lib=conftest
  6599.       libobjs=conftest.$ac_objext
  6600.       deplibs=
  6601.       wl=$lt_cv_prog_cc_wl
  6602.       compiler_flags=-v
  6603.       linker_flags=-v
  6604.       verstring=
  6605.       output_objdir=.
  6606.       libname=conftest
  6607.       save_allow_undefined_flag=$allow_undefined_flag
  6608.       allow_undefined_flag=
  6609.       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  6610.   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  6611.   ac_status=$?
  6612.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6613.   (exit $ac_status); }
  6614.       then
  6615.     lt_cv_archive_cmds_need_lc=no
  6616.       else
  6617.     lt_cv_archive_cmds_need_lc=yes
  6618.       fi
  6619.       allow_undefined_flag=$save_allow_undefined_flag
  6620.     else
  6621.       cat conftest.err 1>&5
  6622.     fi
  6623. fi
  6624.  
  6625.     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
  6626. echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
  6627.     ;;
  6628.   esac
  6629. fi
  6630. need_lc=${lt_cv_archive_cmds_need_lc-yes}
  6631.  
  6632. # The second clause should only fire when bootstrapping the
  6633. # libtool distribution, otherwise you forgot to ship ltmain.sh
  6634. # with your package, and you will get complaints that there are
  6635. # no rules to generate ltmain.sh.
  6636. if test -f "$ltmain"; then
  6637.   :
  6638. else
  6639.   # If there is no Makefile yet, we rely on a make rule to execute
  6640.   # `config.status --recheck' to rerun these tests and create the
  6641.   # libtool script then.
  6642.   test -f Makefile && make "$ltmain"
  6643. fi
  6644.  
  6645. if test -f "$ltmain"; then
  6646.   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  6647.   $rm -f "${ofile}T"
  6648.  
  6649.   echo creating $ofile
  6650.  
  6651.   # Now quote all the things that may contain metacharacters while being
  6652.   # careful not to overquote the AC_SUBSTed values.  We take copies of the
  6653.   # variables and quote the copies for generation of the libtool script.
  6654.   for var in echo old_CC old_CFLAGS \
  6655.     AR AR_FLAGS CC LD LN_S NM SHELL \
  6656.     reload_flag reload_cmds wl \
  6657.     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  6658.     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  6659.     library_names_spec soname_spec \
  6660.     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
  6661.     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
  6662.     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
  6663.     old_striplib striplib file_magic_cmd export_symbols_cmds \
  6664.     deplibs_check_method allow_undefined_flag no_undefined_flag \
  6665.     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  6666.     global_symbol_to_c_name_address \
  6667.     hardcode_libdir_flag_spec hardcode_libdir_separator  \
  6668.     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  6669.     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  6670.  
  6671.     case $var in
  6672.     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
  6673.     old_postinstall_cmds | old_postuninstall_cmds | \
  6674.     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
  6675.     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
  6676.     postinstall_cmds | postuninstall_cmds | \
  6677.     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  6678.       # Double-quote double-evaled strings.
  6679.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  6680.       ;;
  6681.     *)
  6682.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  6683.       ;;
  6684.     esac
  6685.   done
  6686.  
  6687.   cat <<__EOF__ > "${ofile}T"
  6688. #! $SHELL
  6689.  
  6690. # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  6691. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  6692. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  6693. #
  6694. # Copyright (C) 1996-2000 Free Software Foundation, Inc.
  6695. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  6696. #
  6697. # This program is free software; you can redistribute it and/or modify
  6698. # it under the terms of the GNU General Public License as published by
  6699. # the Free Software Foundation; either version 2 of the License, or
  6700. # (at your option) any later version.
  6701. #
  6702. # This program is distributed in the hope that it will be useful, but
  6703. # WITHOUT ANY WARRANTY; without even the implied warranty of
  6704. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  6705. # General Public License for more details.
  6706. #
  6707. # You should have received a copy of the GNU General Public License
  6708. # along with this program; if not, write to the Free Software
  6709. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  6710. #
  6711. # As a special exception to the GNU General Public License, if you
  6712. # distribute this file as part of a program that contains a
  6713. # configuration script generated by Autoconf, you may include it under
  6714. # the same distribution terms that you use for the rest of that program.
  6715.  
  6716. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  6717. Xsed="sed -e s/^X//"
  6718.  
  6719. # The HP-UX ksh and POSIX shell print the target directory to stdout
  6720. # if CDPATH is set.
  6721. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  6722.  
  6723. # ### BEGIN LIBTOOL CONFIG
  6724.  
  6725. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6726.  
  6727. # Shell to use when invoking shell scripts.
  6728. SHELL=$lt_SHELL
  6729.  
  6730. # Whether or not to build shared libraries.
  6731. build_libtool_libs=$enable_shared
  6732.  
  6733. # Whether or not to build static libraries.
  6734. build_old_libs=$enable_static
  6735.  
  6736. # Whether or not to add -lc for building shared libraries.
  6737. build_libtool_need_lc=$need_lc
  6738.  
  6739. # Whether or not to optimize for fast installation.
  6740. fast_install=$enable_fast_install
  6741.  
  6742. # The host system.
  6743. host_alias=$host_alias
  6744. host=$host
  6745.  
  6746. # An echo program that does not interpret backslashes.
  6747. echo=$lt_echo
  6748.  
  6749. # The archiver.
  6750. AR=$lt_AR
  6751. AR_FLAGS=$lt_AR_FLAGS
  6752.  
  6753. # The default C compiler.
  6754. CC=$lt_CC
  6755.  
  6756. # Is the compiler the GNU C compiler?
  6757. with_gcc=$GCC
  6758.  
  6759. # The linker used to build libraries.
  6760. LD=$lt_LD
  6761.  
  6762. # Whether we need hard or soft links.
  6763. LN_S=$lt_LN_S
  6764.  
  6765. # A BSD-compatible nm program.
  6766. NM=$lt_NM
  6767.  
  6768. # A symbol stripping program
  6769. STRIP=$STRIP
  6770.  
  6771. # Used to examine libraries when file_magic_cmd begins "file"
  6772. MAGIC_CMD=$MAGIC_CMD
  6773.  
  6774. # Used on cygwin: DLL creation program.
  6775. DLLTOOL="$DLLTOOL"
  6776.  
  6777. # Used on cygwin: object dumper.
  6778. OBJDUMP="$OBJDUMP"
  6779.  
  6780. # Used on cygwin: assembler.
  6781. AS="$AS"
  6782.  
  6783. # The name of the directory that contains temporary libtool files.
  6784. objdir=$objdir
  6785.  
  6786. # How to create reloadable object files.
  6787. reload_flag=$lt_reload_flag
  6788. reload_cmds=$lt_reload_cmds
  6789.  
  6790. # How to pass a linker flag through the compiler.
  6791. wl=$lt_wl
  6792.  
  6793. # Object file suffix (normally "o").
  6794. objext="$ac_objext"
  6795.  
  6796. # Old archive suffix (normally "a").
  6797. libext="$libext"
  6798.  
  6799. # Executable file suffix (normally "").
  6800. exeext="$exeext"
  6801.  
  6802. # Additional compiler flags for building library objects.
  6803. pic_flag=$lt_pic_flag
  6804. pic_mode=$pic_mode
  6805.  
  6806. # Does compiler simultaneously support -c and -o options?
  6807. compiler_c_o=$lt_compiler_c_o
  6808.  
  6809. # Can we write directly to a .lo ?
  6810. compiler_o_lo=$lt_compiler_o_lo
  6811.  
  6812. # Must we lock files when doing compilation ?
  6813. need_locks=$lt_need_locks
  6814.  
  6815. # Do we need the lib prefix for modules?
  6816. need_lib_prefix=$need_lib_prefix
  6817.  
  6818. # Do we need a version for libraries?
  6819. need_version=$need_version
  6820.  
  6821. # Whether dlopen is supported.
  6822. dlopen_support=$enable_dlopen
  6823.  
  6824. # Whether dlopen of programs is supported.
  6825. dlopen_self=$enable_dlopen_self
  6826.  
  6827. # Whether dlopen of statically linked programs is supported.
  6828. dlopen_self_static=$enable_dlopen_self_static
  6829.  
  6830. # Compiler flag to prevent dynamic linking.
  6831. link_static_flag=$lt_link_static_flag
  6832.  
  6833. # Compiler flag to turn off builtin functions.
  6834. no_builtin_flag=$lt_no_builtin_flag
  6835.  
  6836. # Compiler flag to allow reflexive dlopens.
  6837. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  6838.  
  6839. # Compiler flag to generate shared objects directly from archives.
  6840. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  6841.  
  6842. # Compiler flag to generate thread-safe objects.
  6843. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  6844.  
  6845. # Library versioning type.
  6846. version_type=$version_type
  6847.  
  6848. # Format of library name prefix.
  6849. libname_spec=$lt_libname_spec
  6850.  
  6851. # List of archive names.  First name is the real one, the rest are links.
  6852. # The last name is the one that the linker finds with -lNAME.
  6853. library_names_spec=$lt_library_names_spec
  6854.  
  6855. # The coded name of the library, if different from the real name.
  6856. soname_spec=$lt_soname_spec
  6857.  
  6858. # Commands used to build and install an old-style archive.
  6859. RANLIB=$lt_RANLIB
  6860. old_archive_cmds=$lt_old_archive_cmds
  6861. old_postinstall_cmds=$lt_old_postinstall_cmds
  6862. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  6863.  
  6864. # Create an old-style archive from a shared archive.
  6865. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  6866.  
  6867. # Create a temporary old-style archive to link instead of a shared archive.
  6868. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  6869.  
  6870. # Commands used to build and install a shared archive.
  6871. archive_cmds=$lt_archive_cmds
  6872. archive_expsym_cmds=$lt_archive_expsym_cmds
  6873. postinstall_cmds=$lt_postinstall_cmds
  6874. postuninstall_cmds=$lt_postuninstall_cmds
  6875.  
  6876. # Commands to strip libraries.
  6877. old_striplib=$lt_old_striplib
  6878. striplib=$lt_striplib
  6879.  
  6880. # Method to check whether dependent libraries are shared objects.
  6881. deplibs_check_method=$lt_deplibs_check_method
  6882.  
  6883. # Command to use when deplibs_check_method == file_magic.
  6884. file_magic_cmd=$lt_file_magic_cmd
  6885.  
  6886. # Flag that allows shared libraries with undefined symbols to be built.
  6887. allow_undefined_flag=$lt_allow_undefined_flag
  6888.  
  6889. # Flag that forces no undefined symbols.
  6890. no_undefined_flag=$lt_no_undefined_flag
  6891.  
  6892. # Commands used to finish a libtool library installation in a directory.
  6893. finish_cmds=$lt_finish_cmds
  6894.  
  6895. # Same as above, but a single script fragment to be evaled but not shown.
  6896. finish_eval=$lt_finish_eval
  6897.  
  6898. # Take the output of nm and produce a listing of raw symbols and C names.
  6899. global_symbol_pipe=$lt_global_symbol_pipe
  6900.  
  6901. # Transform the output of nm in a proper C declaration
  6902. global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  6903.  
  6904. # Transform the output of nm in a C name address pair
  6905. global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  6906.  
  6907. # This is the shared library runtime path variable.
  6908. runpath_var=$runpath_var
  6909.  
  6910. # This is the shared library path variable.
  6911. shlibpath_var=$shlibpath_var
  6912.  
  6913. # Is shlibpath searched before the hard-coded library search path?
  6914. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  6915.  
  6916. # How to hardcode a shared library path into an executable.
  6917. hardcode_action=$hardcode_action
  6918.  
  6919. # Whether we should hardcode library paths into libraries.
  6920. hardcode_into_libs=$hardcode_into_libs
  6921.  
  6922. # Flag to hardcode \$libdir into a binary during linking.
  6923. # This must work even if \$libdir does not exist.
  6924. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  6925.  
  6926. # Whether we need a single -rpath flag with a separated argument.
  6927. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  6928.  
  6929. # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  6930. # resulting binary.
  6931. hardcode_direct=$hardcode_direct
  6932.  
  6933. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  6934. # resulting binary.
  6935. hardcode_minus_L=$hardcode_minus_L
  6936.  
  6937. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  6938. # the resulting binary.
  6939. hardcode_shlibpath_var=$hardcode_shlibpath_var
  6940.  
  6941. # Variables whose values should be saved in libtool wrapper scripts and
  6942. # restored at relink time.
  6943. variables_saved_for_relink="$variables_saved_for_relink"
  6944.  
  6945. # Whether libtool must link a program against all its dependency libraries.
  6946. link_all_deplibs=$link_all_deplibs
  6947.  
  6948. # Compile-time system search path for libraries
  6949. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  6950.  
  6951. # Run-time system search path for libraries
  6952. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  6953.  
  6954. # Fix the shell variable \$srcfile for the compiler.
  6955. fix_srcfile_path="$fix_srcfile_path"
  6956.  
  6957. # Set to yes if exported symbols are required.
  6958. always_export_symbols=$always_export_symbols
  6959.  
  6960. # The commands to list exported symbols.
  6961. export_symbols_cmds=$lt_export_symbols_cmds
  6962.  
  6963. # The commands to extract the exported symbol list from a shared archive.
  6964. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  6965.  
  6966. # Symbols that should not be listed in the preloaded symbols.
  6967. exclude_expsyms=$lt_exclude_expsyms
  6968.  
  6969. # Symbols that must always be exported.
  6970. include_expsyms=$lt_include_expsyms
  6971.  
  6972. # ### END LIBTOOL CONFIG
  6973.  
  6974. __EOF__
  6975.  
  6976.   case $host_os in
  6977.   aix3*)
  6978.     cat <<\EOF >> "${ofile}T"
  6979.  
  6980. # AIX sometimes has problems with the GCC collect2 program.  For some
  6981. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6982. # vanish in a puff of smoke.
  6983. if test "X${COLLECT_NAMES+set}" != Xset; then
  6984.   COLLECT_NAMES=
  6985.   export COLLECT_NAMES
  6986. fi
  6987. EOF
  6988.     ;;
  6989.   esac
  6990.  
  6991.   case $host_os in
  6992.   cygwin* | mingw* | pw32* | os2*)
  6993.     cat <<'EOF' >> "${ofile}T"
  6994.       # This is a source program that is used to create dlls on Windows
  6995.       # Don't remove nor modify the starting and closing comments
  6996. # /* ltdll.c starts here */
  6997. # #define WIN32_LEAN_AND_MEAN
  6998. # #include <windows.h>
  6999. # #undef WIN32_LEAN_AND_MEAN
  7000. # #include <stdio.h>
  7001. #
  7002. # #ifndef __CYGWIN__
  7003. # #  ifdef __CYGWIN32__
  7004. # #    define __CYGWIN__ __CYGWIN32__
  7005. # #  endif
  7006. # #endif
  7007. #
  7008. # #ifdef __cplusplus
  7009. # extern "C" {
  7010. # #endif
  7011. # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  7012. # #ifdef __cplusplus
  7013. # }
  7014. # #endif
  7015. #
  7016. # #ifdef __CYGWIN__
  7017. # #include <cygwin/cygwin_dll.h>
  7018. # DECLARE_CYGWIN_DLL( DllMain );
  7019. # #endif
  7020. # HINSTANCE __hDllInstance_base;
  7021. #
  7022. # BOOL APIENTRY
  7023. # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  7024. # {
  7025. #   __hDllInstance_base = hInst;
  7026. #   return TRUE;
  7027. # }
  7028. # /* ltdll.c ends here */
  7029.     # This is a source program that is used to create import libraries
  7030.     # on Windows for dlls which lack them. Don't remove nor modify the
  7031.     # starting and closing comments
  7032. # /* impgen.c starts here */
  7033. # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
  7034. #
  7035. #  This file is part of GNU libtool.
  7036. #
  7037. #  This program is free software; you can redistribute it and/or modify
  7038. #  it under the terms of the GNU General Public License as published by
  7039. #  the Free Software Foundation; either version 2 of the License, or
  7040. #  (at your option) any later version.
  7041. #
  7042. #  This program is distributed in the hope that it will be useful,
  7043. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  7044. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  7045. #  GNU General Public License for more details.
  7046. #
  7047. #  You should have received a copy of the GNU General Public License
  7048. #  along with this program; if not, write to the Free Software
  7049. #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  7050. #  */
  7051. #
  7052. # #include <stdio.h>        /* for printf() */
  7053. # #include <unistd.h>        /* for open(), lseek(), read() */
  7054. # #include <fcntl.h>        /* for O_RDONLY, O_BINARY */
  7055. # #include <string.h>        /* for strdup() */
  7056. #
  7057. # /* O_BINARY isn't required (or even defined sometimes) under Unix */
  7058. # #ifndef O_BINARY
  7059. # #define O_BINARY 0
  7060. # #endif
  7061. #
  7062. # static unsigned int
  7063. # pe_get16 (fd, offset)
  7064. #      int fd;
  7065. #      int offset;
  7066. # {
  7067. #   unsigned char b[2];
  7068. #   lseek (fd, offset, SEEK_SET);
  7069. #   read (fd, b, 2);
  7070. #   return b[0] + (b[1]<<8);
  7071. # }
  7072. #
  7073. # static unsigned int
  7074. # pe_get32 (fd, offset)
  7075. #     int fd;
  7076. #     int offset;
  7077. # {
  7078. #   unsigned char b[4];
  7079. #   lseek (fd, offset, SEEK_SET);
  7080. #   read (fd, b, 4);
  7081. #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  7082. # }
  7083. #
  7084. # static unsigned int
  7085. # pe_as32 (ptr)
  7086. #      void *ptr;
  7087. # {
  7088. #   unsigned char *b = ptr;
  7089. #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  7090. # }
  7091. #
  7092. # int
  7093. # main (argc, argv)
  7094. #     int argc;
  7095. #     char *argv[];
  7096. # {
  7097. #     int dll;
  7098. #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  7099. #     unsigned long export_rva, export_size, nsections, secptr, expptr;
  7100. #     unsigned long name_rvas, nexp;
  7101. #     unsigned char *expdata, *erva;
  7102. #     char *filename, *dll_name;
  7103. #
  7104. #     filename = argv[1];
  7105. #
  7106. #     dll = open(filename, O_RDONLY|O_BINARY);
  7107. #     if (dll < 1)
  7108. #     return 1;
  7109. #
  7110. #     dll_name = filename;
  7111. #
  7112. #     for (i=0; filename[i]; i++)
  7113. #     if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
  7114. #         dll_name = filename + i +1;
  7115. #
  7116. #     pe_header_offset = pe_get32 (dll, 0x3c);
  7117. #     opthdr_ofs = pe_header_offset + 4 + 20;
  7118. #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
  7119. #
  7120. #     if (num_entries < 1) /* no exports */
  7121. #     return 1;
  7122. #
  7123. #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
  7124. #     export_size = pe_get32 (dll, opthdr_ofs + 100);
  7125. #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  7126. #     secptr = (pe_header_offset + 4 + 20 +
  7127. #           pe_get16 (dll, pe_header_offset + 4 + 16));
  7128. #
  7129. #     expptr = 0;
  7130. #     for (i = 0; i < nsections; i++)
  7131. #     {
  7132. #     char sname[8];
  7133. #     unsigned long secptr1 = secptr + 40 * i;
  7134. #     unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  7135. #     unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  7136. #     unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  7137. #     lseek(dll, secptr1, SEEK_SET);
  7138. #     read(dll, sname, 8);
  7139. #     if (vaddr <= export_rva && vaddr+vsize > export_rva)
  7140. #     {
  7141. #         expptr = fptr + (export_rva - vaddr);
  7142. #         if (export_rva + export_size > vaddr + vsize)
  7143. #         export_size = vsize - (export_rva - vaddr);
  7144. #         break;
  7145. #     }
  7146. #     }
  7147. #
  7148. #     expdata = (unsigned char*)malloc(export_size);
  7149. #     lseek (dll, expptr, SEEK_SET);
  7150. #     read (dll, expdata, export_size);
  7151. #     erva = expdata - export_rva;
  7152. #
  7153. #     nexp = pe_as32 (expdata+24);
  7154. #     name_rvas = pe_as32 (expdata+32);
  7155. #
  7156. #     printf ("EXPORTS\n");
  7157. #     for (i = 0; i<nexp; i++)
  7158. #     {
  7159. #     unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  7160. #     printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  7161. #     }
  7162. #
  7163. #     return 0;
  7164. # }
  7165. # /* impgen.c ends here */
  7166.  
  7167. EOF
  7168.     ;;
  7169.   esac
  7170.  
  7171.   # We use sed instead of cat because bash on DJGPP gets confused if
  7172.   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  7173.   # text mode, it properly converts lines to CR/LF.  This bash problem
  7174.   # is reportedly fixed, but why not run on old versions too?
  7175.   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
  7176.  
  7177.   mv -f "${ofile}T" "$ofile" || \
  7178.     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  7179.   chmod +x "$ofile"
  7180. fi
  7181.  
  7182.  
  7183.  
  7184.  
  7185.  
  7186. # This can be used to rebuild libtool when needed
  7187. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  7188.  
  7189. # Always use our own libtool.
  7190. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7191.  
  7192. # Prevent multiple expansion
  7193.  
  7194.  
  7195.  
  7196. checkssldir() { :
  7197.     if test -f "$1/include/openssl/ssl.h"; then
  7198.         cat >>confdefs.h <<\_ACEOF
  7199. #define HAVE_OPENSSL 1
  7200. _ACEOF
  7201.  
  7202.         ssldir="$1"
  7203.         return 0
  7204.     fi
  7205.     if test -f "$1/include/ssl.h"; then
  7206.         ssldir="$1"
  7207.         return 0
  7208.     fi
  7209.     return 1
  7210. }
  7211.  
  7212. echo "$as_me:$LINENO: checking for SSL directory" >&5
  7213. echo $ECHO_N "checking for SSL directory... $ECHO_C" >&6
  7214.  
  7215. # Check whether --with-ssl or --without-ssl was given.
  7216. if test "${with_ssl+set}" = set; then
  7217.   withval="$with_ssl"
  7218.  
  7219.                 checkssldir "$withval"
  7220.  
  7221. else
  7222.  
  7223.                 for maindir in /usr/local /usr/lib /usr/pkg /usr /var/ssl /opt; do
  7224.             for dir in $maindir $maindir/openssl $maindir/ssl; do
  7225.                 checkssldir $dir && break 2
  7226.             done
  7227.         done
  7228.  
  7229.  
  7230. fi;
  7231. if test -z "$ssldir"; then
  7232.     echo "$as_me:$LINENO: result: Not found" >&5
  7233. echo "${ECHO_T}Not found" >&6
  7234.     echo
  7235.     echo "Couldn't find your SSL library installation dir"
  7236.     echo "Use --with-ssl option to fix this problem"
  7237.     echo
  7238.     exit 1
  7239. fi
  7240. echo "$as_me:$LINENO: result: $ssldir" >&5
  7241. echo "${ECHO_T}$ssldir" >&6
  7242.  
  7243. cat >>confdefs.h <<_ACEOF
  7244. #define ssldir "$ssldir"
  7245. _ACEOF
  7246.  
  7247.  
  7248.  
  7249. # Check whether --with-egd-socket or --without-egd-socket was given.
  7250. if test "${with_egd_socket+set}" = set; then
  7251.   withval="$with_egd_socket"
  7252.    EGD_SOCKET="$withval"
  7253.  
  7254. fi;
  7255. if test -n "$EGD_SOCKET" ; then
  7256.     cat >>confdefs.h <<_ACEOF
  7257. #define EGD_SOCKET "$EGD_SOCKET"
  7258. _ACEOF
  7259.  
  7260. fi
  7261.  
  7262.  
  7263. # Check whether --with-random or --without-random was given.
  7264. if test "${with_random+set}" = set; then
  7265.   withval="$with_random"
  7266.    RANDOM_FILE="$withval"
  7267. else
  7268.  
  7269.                 echo "$as_me:$LINENO: checking for \"/dev/urandom\"" >&5
  7270. echo $ECHO_N "checking for \"/dev/urandom\"... $ECHO_C" >&6
  7271. if test "${ac_cv_file___dev_urandom_+set}" = set; then
  7272.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7273. else
  7274.   test "$cross_compiling" = yes &&
  7275.   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  7276. echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  7277.    { (exit 1); exit 1; }; }
  7278. if test -r ""/dev/urandom""; then
  7279.   ac_cv_file___dev_urandom_=yes
  7280. else
  7281.   ac_cv_file___dev_urandom_=no
  7282. fi
  7283. fi
  7284. echo "$as_me:$LINENO: result: $ac_cv_file___dev_urandom_" >&5
  7285. echo "${ECHO_T}$ac_cv_file___dev_urandom_" >&6
  7286. if test $ac_cv_file___dev_urandom_ = yes; then
  7287.  
  7288.                 RANDOM_FILE="/dev/urandom";
  7289.  
  7290.  
  7291. fi
  7292.  
  7293.  
  7294.  
  7295. fi;
  7296. if test -n "$RANDOM_FILE" ; then
  7297.  
  7298.     cat >>confdefs.h <<_ACEOF
  7299. #define RANDOM_FILE "$RANDOM_FILE"
  7300. _ACEOF
  7301.  
  7302. fi
  7303.  
  7304. echo "$as_me:$LINENO: checking whether to disable RSA support" >&5
  7305. echo $ECHO_N "checking whether to disable RSA support... $ECHO_C" >&6
  7306. # Check whether --enable-rsa or --disable-rsa was given.
  7307. if test "${enable_rsa+set}" = set; then
  7308.   enableval="$enable_rsa"
  7309.    echo "$as_me:$LINENO: result: yes" >&5
  7310. echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
  7311. #define NO_RSA 1
  7312. _ACEOF
  7313.  
  7314. else
  7315.    echo "$as_me:$LINENO: result: no" >&5
  7316. echo "${ECHO_T}no" >&6
  7317.  
  7318. fi;
  7319.  
  7320. echo "$as_me:$LINENO: checking whether to enable DH support" >&5
  7321. echo $ECHO_N "checking whether to enable DH support... $ECHO_C" >&6
  7322. # Check whether --enable-dh or --disable-dh was given.
  7323. if test "${enable_dh+set}" = set; then
  7324.   enableval="$enable_dh"
  7325.    echo "$as_me:$LINENO: result: yes" >&5
  7326. echo "${ECHO_T}yes" >&6; USE_DH=1; cat >>confdefs.h <<\_ACEOF
  7327. #define USE_DH 1
  7328. _ACEOF
  7329.  
  7330. else
  7331.    echo "$as_me:$LINENO: result: no" >&5
  7332. echo "${ECHO_T}no" >&6; USE_DH=0
  7333.  
  7334. fi;
  7335.  
  7336.  
  7337.  
  7338. cat >>confdefs.h <<_ACEOF
  7339. #define HOST "$host"
  7340. _ACEOF
  7341.  
  7342.  
  7343.  
  7344. echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  7345. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  7346. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  7347.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7348. else
  7349.   ac_check_lib_save_LIBS=$LIBS
  7350. LIBS="-lnsl  $LIBS"
  7351. cat >conftest.$ac_ext <<_ACEOF
  7352. #line $LINENO "configure"
  7353. #include "confdefs.h"
  7354.  
  7355. /* Override any gcc2 internal prototype to avoid an error.  */
  7356. #ifdef __cplusplus
  7357. extern "C"
  7358. #endif
  7359. /* We use char because int might match the return type of a gcc2
  7360.    builtin and then its argument prototype would still apply.  */
  7361. char gethostbyname ();
  7362. #ifdef F77_DUMMY_MAIN
  7363. #  ifdef __cplusplus
  7364.      extern "C"
  7365. #  endif
  7366.    int F77_DUMMY_MAIN() { return 1; }
  7367. #endif
  7368. int
  7369. main ()
  7370. {
  7371. gethostbyname ();
  7372.   ;
  7373.   return 0;
  7374. }
  7375. _ACEOF
  7376. rm -f conftest.$ac_objext conftest$ac_exeext
  7377. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7378.   (eval $ac_link) 2>&5
  7379.   ac_status=$?
  7380.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7381.   (exit $ac_status); } &&
  7382.          { ac_try='test -s conftest$ac_exeext'
  7383.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7384.   (eval $ac_try) 2>&5
  7385.   ac_status=$?
  7386.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7387.   (exit $ac_status); }; }; then
  7388.   ac_cv_lib_nsl_gethostbyname=yes
  7389. else
  7390.   echo "$as_me: failed program was:" >&5
  7391. cat conftest.$ac_ext >&5
  7392. ac_cv_lib_nsl_gethostbyname=no
  7393. fi
  7394. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7395. LIBS=$ac_check_lib_save_LIBS
  7396. fi
  7397. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  7398. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  7399. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  7400.   cat >>confdefs.h <<_ACEOF
  7401. #define HAVE_LIBNSL 1
  7402. _ACEOF
  7403.  
  7404.   LIBS="-lnsl $LIBS"
  7405.  
  7406. fi
  7407.  
  7408.  
  7409. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  7410. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  7411. if test "${ac_cv_lib_socket_socket+set}" = set; then
  7412.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7413. else
  7414.   ac_check_lib_save_LIBS=$LIBS
  7415. LIBS="-lsocket  $LIBS"
  7416. cat >conftest.$ac_ext <<_ACEOF
  7417. #line $LINENO "configure"
  7418. #include "confdefs.h"
  7419.  
  7420. /* Override any gcc2 internal prototype to avoid an error.  */
  7421. #ifdef __cplusplus
  7422. extern "C"
  7423. #endif
  7424. /* We use char because int might match the return type of a gcc2
  7425.    builtin and then its argument prototype would still apply.  */
  7426. char socket ();
  7427. #ifdef F77_DUMMY_MAIN
  7428. #  ifdef __cplusplus
  7429.      extern "C"
  7430. #  endif
  7431.    int F77_DUMMY_MAIN() { return 1; }
  7432. #endif
  7433. int
  7434. main ()
  7435. {
  7436. socket ();
  7437.   ;
  7438.   return 0;
  7439. }
  7440. _ACEOF
  7441. rm -f conftest.$ac_objext conftest$ac_exeext
  7442. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7443.   (eval $ac_link) 2>&5
  7444.   ac_status=$?
  7445.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7446.   (exit $ac_status); } &&
  7447.          { ac_try='test -s conftest$ac_exeext'
  7448.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7449.   (eval $ac_try) 2>&5
  7450.   ac_status=$?
  7451.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7452.   (exit $ac_status); }; }; then
  7453.   ac_cv_lib_socket_socket=yes
  7454. else
  7455.   echo "$as_me: failed program was:" >&5
  7456. cat conftest.$ac_ext >&5
  7457. ac_cv_lib_socket_socket=no
  7458. fi
  7459. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7460. LIBS=$ac_check_lib_save_LIBS
  7461. fi
  7462. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  7463. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  7464. if test $ac_cv_lib_socket_socket = yes; then
  7465.   cat >>confdefs.h <<_ACEOF
  7466. #define HAVE_LIBSOCKET 1
  7467. _ACEOF
  7468.  
  7469.   LIBS="-lsocket $LIBS"
  7470.  
  7471. fi
  7472.  
  7473.  
  7474. # OSF hack instead of simple AC_CHECK_LIB here
  7475. echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
  7476. echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
  7477.     saved_LIBS="$LIBS"
  7478.     LIBS="-lpthread $saved_LIBS"
  7479.     cat >conftest.$ac_ext <<_ACEOF
  7480. #line $LINENO "configure"
  7481. #include "confdefs.h"
  7482. #include <pthread.h>
  7483. #ifdef F77_DUMMY_MAIN
  7484. #  ifdef __cplusplus
  7485.      extern "C"
  7486. #  endif
  7487.    int F77_DUMMY_MAIN() { return 1; }
  7488. #endif
  7489. int
  7490. main ()
  7491. {
  7492. pthread_create((void *)0, (void *)0, (void *)0, (void *)0)
  7493.   ;
  7494.   return 0;
  7495. }
  7496. _ACEOF
  7497. rm -f conftest.$ac_objext conftest$ac_exeext
  7498. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7499.   (eval $ac_link) 2>&5
  7500.   ac_status=$?
  7501.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7502.   (exit $ac_status); } &&
  7503.          { ac_try='test -s conftest$ac_exeext'
  7504.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7505.   (eval $ac_try) 2>&5
  7506.   ac_status=$?
  7507.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7508.   (exit $ac_status); }; }; then
  7509.   echo "$as_me:$LINENO: result: yes" >&5
  7510. echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
  7511. #define HAVE_LIBPTHREAD 1
  7512. _ACEOF
  7513.  
  7514. else
  7515.   echo "$as_me: failed program was:" >&5
  7516. cat conftest.$ac_ext >&5
  7517. echo "$as_me:$LINENO: result: no" >&5
  7518. echo "${ECHO_T}no" >&6; LIBS="$saved_LIBS"
  7519. fi
  7520. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7521.  
  7522. # BSD hack
  7523. echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
  7524. echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
  7525. if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
  7526.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7527. else
  7528.   ac_check_lib_save_LIBS=$LIBS
  7529. LIBS="-lc_r  $LIBS"
  7530. cat >conftest.$ac_ext <<_ACEOF
  7531. #line $LINENO "configure"
  7532. #include "confdefs.h"
  7533.  
  7534. /* Override any gcc2 internal prototype to avoid an error.  */
  7535. #ifdef __cplusplus
  7536. extern "C"
  7537. #endif
  7538. /* We use char because int might match the return type of a gcc2
  7539.    builtin and then its argument prototype would still apply.  */
  7540. char pthread_create ();
  7541. #ifdef F77_DUMMY_MAIN
  7542. #  ifdef __cplusplus
  7543.      extern "C"
  7544. #  endif
  7545.    int F77_DUMMY_MAIN() { return 1; }
  7546. #endif
  7547. int
  7548. main ()
  7549. {
  7550. pthread_create ();
  7551.   ;
  7552.   return 0;
  7553. }
  7554. _ACEOF
  7555. rm -f conftest.$ac_objext conftest$ac_exeext
  7556. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7557.   (eval $ac_link) 2>&5
  7558.   ac_status=$?
  7559.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7560.   (exit $ac_status); } &&
  7561.          { ac_try='test -s conftest$ac_exeext'
  7562.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7563.   (eval $ac_try) 2>&5
  7564.   ac_status=$?
  7565.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7566.   (exit $ac_status); }; }; then
  7567.   ac_cv_lib_c_r_pthread_create=yes
  7568. else
  7569.   echo "$as_me: failed program was:" >&5
  7570. cat conftest.$ac_ext >&5
  7571. ac_cv_lib_c_r_pthread_create=no
  7572. fi
  7573. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7574. LIBS=$ac_check_lib_save_LIBS
  7575. fi
  7576. echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
  7577. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
  7578. if test $ac_cv_lib_c_r_pthread_create = yes; then
  7579.    LIBS="$LIBS -pthread"
  7580.     cat >>confdefs.h <<\_ACEOF
  7581. #define HAVE_LIBPTHREAD 1
  7582. _ACEOF
  7583.  
  7584.  
  7585. fi
  7586.  
  7587.  
  7588.  
  7589. echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
  7590. echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
  7591. if test "${ac_cv_lib_util_openpty+set}" = set; then
  7592.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7593. else
  7594.   ac_check_lib_save_LIBS=$LIBS
  7595. LIBS="-lutil  $LIBS"
  7596. cat >conftest.$ac_ext <<_ACEOF
  7597. #line $LINENO "configure"
  7598. #include "confdefs.h"
  7599.  
  7600. /* Override any gcc2 internal prototype to avoid an error.  */
  7601. #ifdef __cplusplus
  7602. extern "C"
  7603. #endif
  7604. /* We use char because int might match the return type of a gcc2
  7605.    builtin and then its argument prototype would still apply.  */
  7606. char openpty ();
  7607. #ifdef F77_DUMMY_MAIN
  7608. #  ifdef __cplusplus
  7609.      extern "C"
  7610. #  endif
  7611.    int F77_DUMMY_MAIN() { return 1; }
  7612. #endif
  7613. int
  7614. main ()
  7615. {
  7616. openpty ();
  7617.   ;
  7618.   return 0;
  7619. }
  7620. _ACEOF
  7621. rm -f conftest.$ac_objext conftest$ac_exeext
  7622. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7623.   (eval $ac_link) 2>&5
  7624.   ac_status=$?
  7625.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7626.   (exit $ac_status); } &&
  7627.          { ac_try='test -s conftest$ac_exeext'
  7628.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7629.   (eval $ac_try) 2>&5
  7630.   ac_status=$?
  7631.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7632.   (exit $ac_status); }; }; then
  7633.   ac_cv_lib_util_openpty=yes
  7634. else
  7635.   echo "$as_me: failed program was:" >&5
  7636. cat conftest.$ac_ext >&5
  7637. ac_cv_lib_util_openpty=no
  7638. fi
  7639. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7640. LIBS=$ac_check_lib_save_LIBS
  7641. fi
  7642. echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
  7643. echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
  7644. if test $ac_cv_lib_util_openpty = yes; then
  7645.   cat >>confdefs.h <<_ACEOF
  7646. #define HAVE_LIBUTIL 1
  7647. _ACEOF
  7648.  
  7649.   LIBS="-lutil $LIBS"
  7650.  
  7651. fi
  7652.  
  7653.  
  7654. echo "$as_me:$LINENO: checking whether to use the libwrap (TCP wrappers) library" >&5
  7655. echo $ECHO_N "checking whether to use the libwrap (TCP wrappers) library... $ECHO_C" >&6
  7656.  
  7657. # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
  7658. if test "${with_tcp_wrappers+set}" = set; then
  7659.   withval="$with_tcp_wrappers"
  7660.  
  7661.     saved_LIBS="$LIBS"
  7662.     if test "$withval" = "yes"; then
  7663.       echo "$as_me:$LINENO: result: yes" >&5
  7664. echo "${ECHO_T}yes" >&6
  7665.       echo "$as_me:$LINENO: checking for hosts_access in -lwrap" >&5
  7666. echo $ECHO_N "checking for hosts_access in -lwrap... $ECHO_C" >&6
  7667.       LIBS="-lwrap $LIBS"
  7668.       cat >conftest.$ac_ext <<_ACEOF
  7669. #line $LINENO "configure"
  7670. #include "confdefs.h"
  7671. int hosts_access(); int allow_severity, deny_severity;
  7672. #ifdef F77_DUMMY_MAIN
  7673. #  ifdef __cplusplus
  7674.      extern "C"
  7675. #  endif
  7676.    int F77_DUMMY_MAIN() { return 1; }
  7677. #endif
  7678. int
  7679. main ()
  7680. {
  7681. hosts_access()
  7682.   ;
  7683.   return 0;
  7684. }
  7685. _ACEOF
  7686. rm -f conftest.$ac_objext conftest$ac_exeext
  7687. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7688.   (eval $ac_link) 2>&5
  7689.   ac_status=$?
  7690.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7691.   (exit $ac_status); } &&
  7692.          { ac_try='test -s conftest$ac_exeext'
  7693.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7694.   (eval $ac_try) 2>&5
  7695.   ac_status=$?
  7696.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7697.   (exit $ac_status); }; }; then
  7698.   echo "$as_me:$LINENO: result: yes" >&5
  7699. echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
  7700. #define HAVE_LIBWRAP 1
  7701. _ACEOF
  7702.  wrap_LIB="-lwrap"
  7703. else
  7704.   echo "$as_me: failed program was:" >&5
  7705. cat conftest.$ac_ext >&5
  7706. echo "$as_me:$LINENO: result: not found" >&5
  7707. echo "${ECHO_T}not found" >&6; exit 1
  7708. fi
  7709. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7710.     else
  7711.       echo "$as_me:$LINENO: result: no" >&5
  7712. echo "${ECHO_T}no" >&6
  7713.     fi
  7714.     LIBS="$saved_LIBS"
  7715.  
  7716. else
  7717.  
  7718.     echo "$as_me:$LINENO: result: (default)" >&5
  7719. echo "${ECHO_T}(default)" >&6
  7720.     echo "$as_me:$LINENO: checking for hosts_access in -lwrap" >&5
  7721. echo $ECHO_N "checking for hosts_access in -lwrap... $ECHO_C" >&6
  7722.     saved_LIBS="$LIBS"
  7723.     LIBS="-lwrap $saved_LIBS"
  7724.     cat >conftest.$ac_ext <<_ACEOF
  7725. #line $LINENO "configure"
  7726. #include "confdefs.h"
  7727. int hosts_access(); int allow_severity, deny_severity;
  7728. #ifdef F77_DUMMY_MAIN
  7729. #  ifdef __cplusplus
  7730.      extern "C"
  7731. #  endif
  7732.    int F77_DUMMY_MAIN() { return 1; }
  7733. #endif
  7734. int
  7735. main ()
  7736. {
  7737. hosts_access()
  7738.   ;
  7739.   return 0;
  7740. }
  7741. _ACEOF
  7742. rm -f conftest.$ac_objext conftest$ac_exeext
  7743. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7744.   (eval $ac_link) 2>&5
  7745.   ac_status=$?
  7746.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7747.   (exit $ac_status); } &&
  7748.          { ac_try='test -s conftest$ac_exeext'
  7749.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7750.   (eval $ac_try) 2>&5
  7751.   ac_status=$?
  7752.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7753.   (exit $ac_status); }; }; then
  7754.   echo "$as_me:$LINENO: result: yes" >&5
  7755. echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
  7756. #define HAVE_LIBWRAP 1
  7757. _ACEOF
  7758.  
  7759. else
  7760.   echo "$as_me: failed program was:" >&5
  7761. cat conftest.$ac_ext >&5
  7762. echo "$as_me:$LINENO: result: no" >&5
  7763. echo "${ECHO_T}no" >&6; LIBS="$saved_LIBS"
  7764. fi
  7765. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7766.  
  7767.  
  7768.  
  7769. fi;
  7770.  
  7771. CFLAGS="$CFLAGS -I$ssldir/include"
  7772. LIBS="$LIBS -L$ssldir/lib -lssl -lcrypto"
  7773.  
  7774. if test "$host_os" = "beos"; then
  7775. LIBS="$LIBS -lbe -lroot -lbind"
  7776. fi
  7777.  
  7778. echo "$as_me:$LINENO: checking for RSAref library" >&5
  7779. echo $ECHO_N "checking for RSAref library... $ECHO_C" >&6
  7780. saved_LIBS="$LIBS"
  7781. LIBS="$saved_LIBS -lRSAglue -L$prefix/lib -lrsaref"
  7782. cat >conftest.$ac_ext <<_ACEOF
  7783. #line $LINENO "configure"
  7784. #include "confdefs.h"
  7785.  
  7786. #ifdef F77_DUMMY_MAIN
  7787. #  ifdef __cplusplus
  7788.      extern "C"
  7789. #  endif
  7790.    int F77_DUMMY_MAIN() { return 1; }
  7791. #endif
  7792. int
  7793. main ()
  7794. {
  7795.  
  7796.   ;
  7797.   return 0;
  7798. }
  7799. _ACEOF
  7800. rm -f conftest.$ac_objext conftest$ac_exeext
  7801. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7802.   (eval $ac_link) 2>&5
  7803.   ac_status=$?
  7804.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7805.   (exit $ac_status); } &&
  7806.          { ac_try='test -s conftest$ac_exeext'
  7807.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7808.   (eval $ac_try) 2>&5
  7809.   ac_status=$?
  7810.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7811.   (exit $ac_status); }; }; then
  7812.   echo "$as_me:$LINENO: result: yes" >&5
  7813. echo "${ECHO_T}yes" >&6;
  7814. else
  7815.   echo "$as_me: failed program was:" >&5
  7816. cat conftest.$ac_ext >&5
  7817. echo "$as_me:$LINENO: result: no" >&5
  7818. echo "${ECHO_T}no" >&6; LIBS="$saved_LIBS"
  7819. fi
  7820. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7821.  
  7822. echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
  7823. echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
  7824. if test "${ac_cv_file___dev_ptmx_+set}" = set; then
  7825.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7826. else
  7827.   test "$cross_compiling" = yes &&
  7828.   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  7829. echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  7830.    { (exit 1); exit 1; }; }
  7831. if test -r ""/dev/ptmx""; then
  7832.   ac_cv_file___dev_ptmx_=yes
  7833. else
  7834.   ac_cv_file___dev_ptmx_=no
  7835. fi
  7836. fi
  7837. echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
  7838. echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
  7839. if test $ac_cv_file___dev_ptmx_ = yes; then
  7840.   cat >>confdefs.h <<\_ACEOF
  7841. #define HAVE_DEV_PTMX 1
  7842. _ACEOF
  7843.  
  7844. fi
  7845.  
  7846. echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
  7847. echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
  7848. if test "${ac_cv_file___dev_ptc_+set}" = set; then
  7849.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7850. else
  7851.   test "$cross_compiling" = yes &&
  7852.   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  7853. echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  7854.    { (exit 1); exit 1; }; }
  7855. if test -r ""/dev/ptc""; then
  7856.   ac_cv_file___dev_ptc_=yes
  7857. else
  7858.   ac_cv_file___dev_ptc_=no
  7859. fi
  7860. fi
  7861. echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
  7862. echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
  7863. if test $ac_cv_file___dev_ptc_ = yes; then
  7864.   cat >>confdefs.h <<\_ACEOF
  7865. #define HAVE_DEV_PTS_AND_PTC 1
  7866. _ACEOF
  7867.  
  7868. fi
  7869.  
  7870.  
  7871. # AC_HEADER_DIRENT
  7872. # AC_HEADER_STDC
  7873. # AC_HEADER_SYS_WAIT
  7874.  
  7875.  
  7876.  
  7877.  
  7878.  
  7879.  
  7880.  
  7881.  
  7882.  
  7883.  
  7884. for ac_header in unistd.h sys/select.h tcpd.h pthread.h sys/ioctl.h util.h pty.h stropts.h sys/filio.h sys/resource.h
  7885. do
  7886. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7887. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7888.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  7889. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7890. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7891.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7892. fi
  7893. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7894. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7895. else
  7896.   # Is the header compilable?
  7897. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7898. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7899. cat >conftest.$ac_ext <<_ACEOF
  7900. #line $LINENO "configure"
  7901. #include "confdefs.h"
  7902. $ac_includes_default
  7903. #include <$ac_header>
  7904. _ACEOF
  7905. rm -f conftest.$ac_objext
  7906. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7907.   (eval $ac_compile) 2>&5
  7908.   ac_status=$?
  7909.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7910.   (exit $ac_status); } &&
  7911.          { ac_try='test -s conftest.$ac_objext'
  7912.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7913.   (eval $ac_try) 2>&5
  7914.   ac_status=$?
  7915.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7916.   (exit $ac_status); }; }; then
  7917.   ac_header_compiler=yes
  7918. else
  7919.   echo "$as_me: failed program was:" >&5
  7920. cat conftest.$ac_ext >&5
  7921. ac_header_compiler=no
  7922. fi
  7923. rm -f conftest.$ac_objext conftest.$ac_ext
  7924. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7925. echo "${ECHO_T}$ac_header_compiler" >&6
  7926.  
  7927. # Is the header present?
  7928. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7929. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7930. cat >conftest.$ac_ext <<_ACEOF
  7931. #line $LINENO "configure"
  7932. #include "confdefs.h"
  7933. #include <$ac_header>
  7934. _ACEOF
  7935. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7936.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7937.   ac_status=$?
  7938.   egrep -v '^ *\+' conftest.er1 >conftest.err
  7939.   rm -f conftest.er1
  7940.   cat conftest.err >&5
  7941.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7942.   (exit $ac_status); } >/dev/null; then
  7943.   if test -s conftest.err; then
  7944.     ac_cpp_err=$ac_c_preproc_warn_flag
  7945.   else
  7946.     ac_cpp_err=
  7947.   fi
  7948. else
  7949.   ac_cpp_err=yes
  7950. fi
  7951. if test -z "$ac_cpp_err"; then
  7952.   ac_header_preproc=yes
  7953. else
  7954.   echo "$as_me: failed program was:" >&5
  7955.   cat conftest.$ac_ext >&5
  7956.   ac_header_preproc=no
  7957. fi
  7958. rm -f conftest.err conftest.$ac_ext
  7959. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7960. echo "${ECHO_T}$ac_header_preproc" >&6
  7961.  
  7962. # So?  What about this header?
  7963. case $ac_header_compiler:$ac_header_preproc in
  7964.   yes:no )
  7965.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7966. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7967.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7968. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7969.   no:yes )
  7970.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7971. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7972.     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7973. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7974.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7975. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7976. esac
  7977. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7978. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7979. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7980.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7981. else
  7982.   eval "$as_ac_Header=$ac_header_preproc"
  7983. fi
  7984. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7985. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7986.  
  7987. fi
  7988. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7989.   cat >>confdefs.h <<_ACEOF
  7990. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7991. _ACEOF
  7992.  
  7993. fi
  7994.  
  7995. done
  7996.  
  7997.  
  7998. # dnl Checks for typedefs, structures, and compiler characteristics.
  7999. # AC_C_CONST
  8000. # AC_TYPE_SIGNAL
  8001. # AC_TYPE_SIZE_T
  8002. # AC_TYPE_PID_T
  8003. # AC_HEADER_TIME
  8004.  
  8005.  
  8006.  
  8007.  
  8008.  
  8009.  
  8010.  
  8011.  
  8012.  
  8013.  
  8014.  
  8015.  
  8016.  
  8017.  
  8018.  
  8019. for ac_func in snprintf vsnprintf openpty _getpty daemon waitpid wait4 sysconf getrlimit pthread_sigmask setgroups localtime_r chroot endhostent
  8020. do
  8021. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8022. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8023. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8024. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8025.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8026. else
  8027.   cat >conftest.$ac_ext <<_ACEOF
  8028. #line $LINENO "configure"
  8029. #include "confdefs.h"
  8030. /* System header to define __stub macros and hopefully few prototypes,
  8031.     which can conflict with char $ac_func (); below.  */
  8032. #include <assert.h>
  8033. /* Override any gcc2 internal prototype to avoid an error.  */
  8034. #ifdef __cplusplus
  8035. extern "C"
  8036. #endif
  8037. /* We use char because int might match the return type of a gcc2
  8038.    builtin and then its argument prototype would still apply.  */
  8039. char $ac_func ();
  8040. char (*f) ();
  8041.  
  8042. #ifdef F77_DUMMY_MAIN
  8043. #  ifdef __cplusplus
  8044.      extern "C"
  8045. #  endif
  8046.    int F77_DUMMY_MAIN() { return 1; }
  8047. #endif
  8048. int
  8049. main ()
  8050. {
  8051. /* The GNU C library defines this for functions which it implements
  8052.     to always fail with ENOSYS.  Some functions are actually named
  8053.     something starting with __ and the normal name is an alias.  */
  8054. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8055. choke me
  8056. #else
  8057. f = $ac_func;
  8058. #endif
  8059.  
  8060.   ;
  8061.   return 0;
  8062. }
  8063. _ACEOF
  8064. rm -f conftest.$ac_objext conftest$ac_exeext
  8065. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8066.   (eval $ac_link) 2>&5
  8067.   ac_status=$?
  8068.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8069.   (exit $ac_status); } &&
  8070.          { ac_try='test -s conftest$ac_exeext'
  8071.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8072.   (eval $ac_try) 2>&5
  8073.   ac_status=$?
  8074.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8075.   (exit $ac_status); }; }; then
  8076.   eval "$as_ac_var=yes"
  8077. else
  8078.   echo "$as_me: failed program was:" >&5
  8079. cat conftest.$ac_ext >&5
  8080. eval "$as_ac_var=no"
  8081. fi
  8082. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8083. fi
  8084. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8085. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8086. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8087.   cat >>confdefs.h <<_ACEOF
  8088. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8089. _ACEOF
  8090.  
  8091. fi
  8092. done
  8093.  
  8094.  
  8095. echo "$as_me:$LINENO: checking for unsigned char" >&5
  8096. echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
  8097. if test "${ac_cv_type_unsigned_char+set}" = set; then
  8098.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8099. else
  8100.   cat >conftest.$ac_ext <<_ACEOF
  8101. #line $LINENO "configure"
  8102. #include "confdefs.h"
  8103. $ac_includes_default
  8104. #ifdef F77_DUMMY_MAIN
  8105. #  ifdef __cplusplus
  8106.      extern "C"
  8107. #  endif
  8108.    int F77_DUMMY_MAIN() { return 1; }
  8109. #endif
  8110. int
  8111. main ()
  8112. {
  8113. if ((unsigned char *) 0)
  8114.   return 0;
  8115. if (sizeof (unsigned char))
  8116.   return 0;
  8117.   ;
  8118.   return 0;
  8119. }
  8120. _ACEOF
  8121. rm -f conftest.$ac_objext
  8122. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8123.   (eval $ac_compile) 2>&5
  8124.   ac_status=$?
  8125.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8126.   (exit $ac_status); } &&
  8127.          { ac_try='test -s conftest.$ac_objext'
  8128.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8129.   (eval $ac_try) 2>&5
  8130.   ac_status=$?
  8131.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8132.   (exit $ac_status); }; }; then
  8133.   ac_cv_type_unsigned_char=yes
  8134. else
  8135.   echo "$as_me: failed program was:" >&5
  8136. cat conftest.$ac_ext >&5
  8137. ac_cv_type_unsigned_char=no
  8138. fi
  8139. rm -f conftest.$ac_objext conftest.$ac_ext
  8140. fi
  8141. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
  8142. echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6
  8143.  
  8144. echo "$as_me:$LINENO: checking size of unsigned char" >&5
  8145. echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6
  8146. if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
  8147.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8148. else
  8149.   if test "$ac_cv_type_unsigned_char" = yes; then
  8150.   # The cast to unsigned long works around a bug in the HP C Compiler
  8151.   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8152.   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8153.   # This bug is HP SR number 8606223364.
  8154.   if test "$cross_compiling" = yes; then
  8155.   # Depending upon the size, compute the lo and hi bounds.
  8156. cat >conftest.$ac_ext <<_ACEOF
  8157. #line $LINENO "configure"
  8158. #include "confdefs.h"
  8159. $ac_includes_default
  8160. #ifdef F77_DUMMY_MAIN
  8161. #  ifdef __cplusplus
  8162.      extern "C"
  8163. #  endif
  8164.    int F77_DUMMY_MAIN() { return 1; }
  8165. #endif
  8166. int
  8167. main ()
  8168. {
  8169. static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= 0)];
  8170. test_array [0] = 0
  8171.  
  8172.   ;
  8173.   return 0;
  8174. }
  8175. _ACEOF
  8176. rm -f conftest.$ac_objext
  8177. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8178.   (eval $ac_compile) 2>&5
  8179.   ac_status=$?
  8180.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8181.   (exit $ac_status); } &&
  8182.          { ac_try='test -s conftest.$ac_objext'
  8183.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8184.   (eval $ac_try) 2>&5
  8185.   ac_status=$?
  8186.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8187.   (exit $ac_status); }; }; then
  8188.   ac_lo=0 ac_mid=0
  8189.   while :; do
  8190.     cat >conftest.$ac_ext <<_ACEOF
  8191. #line $LINENO "configure"
  8192. #include "confdefs.h"
  8193. $ac_includes_default
  8194. #ifdef F77_DUMMY_MAIN
  8195. #  ifdef __cplusplus
  8196.      extern "C"
  8197. #  endif
  8198.    int F77_DUMMY_MAIN() { return 1; }
  8199. #endif
  8200. int
  8201. main ()
  8202. {
  8203. static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
  8204. test_array [0] = 0
  8205.  
  8206.   ;
  8207.   return 0;
  8208. }
  8209. _ACEOF
  8210. rm -f conftest.$ac_objext
  8211. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8212.   (eval $ac_compile) 2>&5
  8213.   ac_status=$?
  8214.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8215.   (exit $ac_status); } &&
  8216.          { ac_try='test -s conftest.$ac_objext'
  8217.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8218.   (eval $ac_try) 2>&5
  8219.   ac_status=$?
  8220.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8221.   (exit $ac_status); }; }; then
  8222.   ac_hi=$ac_mid; break
  8223. else
  8224.   echo "$as_me: failed program was:" >&5
  8225. cat conftest.$ac_ext >&5
  8226. ac_lo=`expr $ac_mid + 1`
  8227.                     if test $ac_lo -le $ac_mid; then
  8228.                       ac_lo= ac_hi=
  8229.                       break
  8230.                     fi
  8231.                     ac_mid=`expr 2 '*' $ac_mid + 1`
  8232. fi
  8233. rm -f conftest.$ac_objext conftest.$ac_ext
  8234.   done
  8235. else
  8236.   echo "$as_me: failed program was:" >&5
  8237. cat conftest.$ac_ext >&5
  8238. cat >conftest.$ac_ext <<_ACEOF
  8239. #line $LINENO "configure"
  8240. #include "confdefs.h"
  8241. $ac_includes_default
  8242. #ifdef F77_DUMMY_MAIN
  8243. #  ifdef __cplusplus
  8244.      extern "C"
  8245. #  endif
  8246.    int F77_DUMMY_MAIN() { return 1; }
  8247. #endif
  8248. int
  8249. main ()
  8250. {
  8251. static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) < 0)];
  8252. test_array [0] = 0
  8253.  
  8254.   ;
  8255.   return 0;
  8256. }
  8257. _ACEOF
  8258. rm -f conftest.$ac_objext
  8259. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8260.   (eval $ac_compile) 2>&5
  8261.   ac_status=$?
  8262.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8263.   (exit $ac_status); } &&
  8264.          { ac_try='test -s conftest.$ac_objext'
  8265.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8266.   (eval $ac_try) 2>&5
  8267.   ac_status=$?
  8268.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8269.   (exit $ac_status); }; }; then
  8270.   ac_hi=-1 ac_mid=-1
  8271.   while :; do
  8272.     cat >conftest.$ac_ext <<_ACEOF
  8273. #line $LINENO "configure"
  8274. #include "confdefs.h"
  8275. $ac_includes_default
  8276. #ifdef F77_DUMMY_MAIN
  8277. #  ifdef __cplusplus
  8278.      extern "C"
  8279. #  endif
  8280.    int F77_DUMMY_MAIN() { return 1; }
  8281. #endif
  8282. int
  8283. main ()
  8284. {
  8285. static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= $ac_mid)];
  8286. test_array [0] = 0
  8287.  
  8288.   ;
  8289.   return 0;
  8290. }
  8291. _ACEOF
  8292. rm -f conftest.$ac_objext
  8293. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8294.   (eval $ac_compile) 2>&5
  8295.   ac_status=$?
  8296.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8297.   (exit $ac_status); } &&
  8298.          { ac_try='test -s conftest.$ac_objext'
  8299.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8300.   (eval $ac_try) 2>&5
  8301.   ac_status=$?
  8302.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8303.   (exit $ac_status); }; }; then
  8304.   ac_lo=$ac_mid; break
  8305. else
  8306.   echo "$as_me: failed program was:" >&5
  8307. cat conftest.$ac_ext >&5
  8308. ac_hi=`expr '(' $ac_mid ')' - 1`
  8309.                        if test $ac_mid -le $ac_hi; then
  8310.                          ac_lo= ac_hi=
  8311.                          break
  8312.                        fi
  8313.                        ac_mid=`expr 2 '*' $ac_mid`
  8314. fi
  8315. rm -f conftest.$ac_objext conftest.$ac_ext
  8316.   done
  8317. else
  8318.   echo "$as_me: failed program was:" >&5
  8319. cat conftest.$ac_ext >&5
  8320. ac_lo= ac_hi=
  8321. fi
  8322. rm -f conftest.$ac_objext conftest.$ac_ext
  8323. fi
  8324. rm -f conftest.$ac_objext conftest.$ac_ext
  8325. # Binary search between lo and hi bounds.
  8326. while test "x$ac_lo" != "x$ac_hi"; do
  8327.   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8328.   cat >conftest.$ac_ext <<_ACEOF
  8329. #line $LINENO "configure"
  8330. #include "confdefs.h"
  8331. $ac_includes_default
  8332. #ifdef F77_DUMMY_MAIN
  8333. #  ifdef __cplusplus
  8334.      extern "C"
  8335. #  endif
  8336.    int F77_DUMMY_MAIN() { return 1; }
  8337. #endif
  8338. int
  8339. main ()
  8340. {
  8341. static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
  8342. test_array [0] = 0
  8343.  
  8344.   ;
  8345.   return 0;
  8346. }
  8347. _ACEOF
  8348. rm -f conftest.$ac_objext
  8349. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8350.   (eval $ac_compile) 2>&5
  8351.   ac_status=$?
  8352.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8353.   (exit $ac_status); } &&
  8354.          { ac_try='test -s conftest.$ac_objext'
  8355.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8356.   (eval $ac_try) 2>&5
  8357.   ac_status=$?
  8358.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8359.   (exit $ac_status); }; }; then
  8360.   ac_hi=$ac_mid
  8361. else
  8362.   echo "$as_me: failed program was:" >&5
  8363. cat conftest.$ac_ext >&5
  8364. ac_lo=`expr '(' $ac_mid ')' + 1`
  8365. fi
  8366. rm -f conftest.$ac_objext conftest.$ac_ext
  8367. done
  8368. case $ac_lo in
  8369. ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
  8370. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77" >&5
  8371. echo "$as_me: error: cannot compute sizeof (unsigned char), 77" >&2;}
  8372.    { (exit 1); exit 1; }; } ;;
  8373. esac
  8374. else
  8375.   if test "$cross_compiling" = yes; then
  8376.   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
  8377. echo "$as_me: error: cannot run test program while cross compiling" >&2;}
  8378.    { (exit 1); exit 1; }; }
  8379. else
  8380.   cat >conftest.$ac_ext <<_ACEOF
  8381. #line $LINENO "configure"
  8382. #include "confdefs.h"
  8383. $ac_includes_default
  8384. long longval () { return (long) (sizeof (unsigned char)); }
  8385. unsigned long ulongval () { return (long) (sizeof (unsigned char)); }
  8386. #include <stdio.h>
  8387. #include <stdlib.h>
  8388. #ifdef F77_DUMMY_MAIN
  8389. #  ifdef __cplusplus
  8390.      extern "C"
  8391. #  endif
  8392.    int F77_DUMMY_MAIN() { return 1; }
  8393. #endif
  8394. int
  8395. main ()
  8396. {
  8397.  
  8398.   FILE *f = fopen ("conftest.val", "w");
  8399.   if (! f)
  8400.     exit (1);
  8401.   if (((long) (sizeof (unsigned char))) < 0)
  8402.     {
  8403.       long i = longval ();
  8404.       if (i != ((long) (sizeof (unsigned char))))
  8405.     exit (1);
  8406.       fprintf (f, "%ld\n", i);
  8407.     }
  8408.   else
  8409.     {
  8410.       unsigned long i = ulongval ();
  8411.       if (i != ((long) (sizeof (unsigned char))))
  8412.     exit (1);
  8413.       fprintf (f, "%lu\n", i);
  8414.     }
  8415.   exit (ferror (f) || fclose (f) != 0);
  8416.  
  8417.   ;
  8418.   return 0;
  8419. }
  8420. _ACEOF
  8421. rm -f conftest$ac_exeext
  8422. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8423.   (eval $ac_link) 2>&5
  8424.   ac_status=$?
  8425.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8426.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8427.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8428.   (eval $ac_try) 2>&5
  8429.   ac_status=$?
  8430.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8431.   (exit $ac_status); }; }; then
  8432.   ac_cv_sizeof_unsigned_char=`cat conftest.val`
  8433. else
  8434.   echo "$as_me: program exited with status $ac_status" >&5
  8435. echo "$as_me: failed program was:" >&5
  8436. cat conftest.$ac_ext >&5
  8437. ( exit $ac_status )
  8438. { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77" >&5
  8439. echo "$as_me: error: cannot compute sizeof (unsigned char), 77" >&2;}
  8440.    { (exit 1); exit 1; }; }
  8441. fi
  8442. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8443. fi
  8444. fi
  8445. rm -f conftest.val
  8446. else
  8447.   ac_cv_sizeof_unsigned_char=0
  8448. fi
  8449. fi
  8450. echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
  8451. echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
  8452. cat >>confdefs.h <<_ACEOF
  8453. #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
  8454. _ACEOF
  8455.  
  8456.  
  8457. echo "$as_me:$LINENO: checking for unsigned short" >&5
  8458. echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
  8459. if test "${ac_cv_type_unsigned_short+set}" = set; then
  8460.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8461. else
  8462.   cat >conftest.$ac_ext <<_ACEOF
  8463. #line $LINENO "configure"
  8464. #include "confdefs.h"
  8465. $ac_includes_default
  8466. #ifdef F77_DUMMY_MAIN
  8467. #  ifdef __cplusplus
  8468.      extern "C"
  8469. #  endif
  8470.    int F77_DUMMY_MAIN() { return 1; }
  8471. #endif
  8472. int
  8473. main ()
  8474. {
  8475. if ((unsigned short *) 0)
  8476.   return 0;
  8477. if (sizeof (unsigned short))
  8478.   return 0;
  8479.   ;
  8480.   return 0;
  8481. }
  8482. _ACEOF
  8483. rm -f conftest.$ac_objext
  8484. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8485.   (eval $ac_compile) 2>&5
  8486.   ac_status=$?
  8487.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8488.   (exit $ac_status); } &&
  8489.          { ac_try='test -s conftest.$ac_objext'
  8490.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8491.   (eval $ac_try) 2>&5
  8492.   ac_status=$?
  8493.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8494.   (exit $ac_status); }; }; then
  8495.   ac_cv_type_unsigned_short=yes
  8496. else
  8497.   echo "$as_me: failed program was:" >&5
  8498. cat conftest.$ac_ext >&5
  8499. ac_cv_type_unsigned_short=no
  8500. fi
  8501. rm -f conftest.$ac_objext conftest.$ac_ext
  8502. fi
  8503. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
  8504. echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
  8505.  
  8506. echo "$as_me:$LINENO: checking size of unsigned short" >&5
  8507. echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
  8508. if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
  8509.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8510. else
  8511.   if test "$ac_cv_type_unsigned_short" = yes; then
  8512.   # The cast to unsigned long works around a bug in the HP C Compiler
  8513.   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8514.   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8515.   # This bug is HP SR number 8606223364.
  8516.   if test "$cross_compiling" = yes; then
  8517.   # Depending upon the size, compute the lo and hi bounds.
  8518. cat >conftest.$ac_ext <<_ACEOF
  8519. #line $LINENO "configure"
  8520. #include "confdefs.h"
  8521. $ac_includes_default
  8522. #ifdef F77_DUMMY_MAIN
  8523. #  ifdef __cplusplus
  8524.      extern "C"
  8525. #  endif
  8526.    int F77_DUMMY_MAIN() { return 1; }
  8527. #endif
  8528. int
  8529. main ()
  8530. {
  8531. static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
  8532. test_array [0] = 0
  8533.  
  8534.   ;
  8535.   return 0;
  8536. }
  8537. _ACEOF
  8538. rm -f conftest.$ac_objext
  8539. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8540.   (eval $ac_compile) 2>&5
  8541.   ac_status=$?
  8542.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8543.   (exit $ac_status); } &&
  8544.          { ac_try='test -s conftest.$ac_objext'
  8545.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8546.   (eval $ac_try) 2>&5
  8547.   ac_status=$?
  8548.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8549.   (exit $ac_status); }; }; then
  8550.   ac_lo=0 ac_mid=0
  8551.   while :; do
  8552.     cat >conftest.$ac_ext <<_ACEOF
  8553. #line $LINENO "configure"
  8554. #include "confdefs.h"
  8555. $ac_includes_default
  8556. #ifdef F77_DUMMY_MAIN
  8557. #  ifdef __cplusplus
  8558.      extern "C"
  8559. #  endif
  8560.    int F77_DUMMY_MAIN() { return 1; }
  8561. #endif
  8562. int
  8563. main ()
  8564. {
  8565. static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
  8566. test_array [0] = 0
  8567.  
  8568.   ;
  8569.   return 0;
  8570. }
  8571. _ACEOF
  8572. rm -f conftest.$ac_objext
  8573. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8574.   (eval $ac_compile) 2>&5
  8575.   ac_status=$?
  8576.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8577.   (exit $ac_status); } &&
  8578.          { ac_try='test -s conftest.$ac_objext'
  8579.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8580.   (eval $ac_try) 2>&5
  8581.   ac_status=$?
  8582.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8583.   (exit $ac_status); }; }; then
  8584.   ac_hi=$ac_mid; break
  8585. else
  8586.   echo "$as_me: failed program was:" >&5
  8587. cat conftest.$ac_ext >&5
  8588. ac_lo=`expr $ac_mid + 1`
  8589.                     if test $ac_lo -le $ac_mid; then
  8590.                       ac_lo= ac_hi=
  8591.                       break
  8592.                     fi
  8593.                     ac_mid=`expr 2 '*' $ac_mid + 1`
  8594. fi
  8595. rm -f conftest.$ac_objext conftest.$ac_ext
  8596.   done
  8597. else
  8598.   echo "$as_me: failed program was:" >&5
  8599. cat conftest.$ac_ext >&5
  8600. cat >conftest.$ac_ext <<_ACEOF
  8601. #line $LINENO "configure"
  8602. #include "confdefs.h"
  8603. $ac_includes_default
  8604. #ifdef F77_DUMMY_MAIN
  8605. #  ifdef __cplusplus
  8606.      extern "C"
  8607. #  endif
  8608.    int F77_DUMMY_MAIN() { return 1; }
  8609. #endif
  8610. int
  8611. main ()
  8612. {
  8613. static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
  8614. test_array [0] = 0
  8615.  
  8616.   ;
  8617.   return 0;
  8618. }
  8619. _ACEOF
  8620. rm -f conftest.$ac_objext
  8621. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8622.   (eval $ac_compile) 2>&5
  8623.   ac_status=$?
  8624.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8625.   (exit $ac_status); } &&
  8626.          { ac_try='test -s conftest.$ac_objext'
  8627.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8628.   (eval $ac_try) 2>&5
  8629.   ac_status=$?
  8630.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8631.   (exit $ac_status); }; }; then
  8632.   ac_hi=-1 ac_mid=-1
  8633.   while :; do
  8634.     cat >conftest.$ac_ext <<_ACEOF
  8635. #line $LINENO "configure"
  8636. #include "confdefs.h"
  8637. $ac_includes_default
  8638. #ifdef F77_DUMMY_MAIN
  8639. #  ifdef __cplusplus
  8640.      extern "C"
  8641. #  endif
  8642.    int F77_DUMMY_MAIN() { return 1; }
  8643. #endif
  8644. int
  8645. main ()
  8646. {
  8647. static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
  8648. test_array [0] = 0
  8649.  
  8650.   ;
  8651.   return 0;
  8652. }
  8653. _ACEOF
  8654. rm -f conftest.$ac_objext
  8655. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8656.   (eval $ac_compile) 2>&5
  8657.   ac_status=$?
  8658.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8659.   (exit $ac_status); } &&
  8660.          { ac_try='test -s conftest.$ac_objext'
  8661.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8662.   (eval $ac_try) 2>&5
  8663.   ac_status=$?
  8664.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8665.   (exit $ac_status); }; }; then
  8666.   ac_lo=$ac_mid; break
  8667. else
  8668.   echo "$as_me: failed program was:" >&5
  8669. cat conftest.$ac_ext >&5
  8670. ac_hi=`expr '(' $ac_mid ')' - 1`
  8671.                        if test $ac_mid -le $ac_hi; then
  8672.                          ac_lo= ac_hi=
  8673.                          break
  8674.                        fi
  8675.                        ac_mid=`expr 2 '*' $ac_mid`
  8676. fi
  8677. rm -f conftest.$ac_objext conftest.$ac_ext
  8678.   done
  8679. else
  8680.   echo "$as_me: failed program was:" >&5
  8681. cat conftest.$ac_ext >&5
  8682. ac_lo= ac_hi=
  8683. fi
  8684. rm -f conftest.$ac_objext conftest.$ac_ext
  8685. fi
  8686. rm -f conftest.$ac_objext conftest.$ac_ext
  8687. # Binary search between lo and hi bounds.
  8688. while test "x$ac_lo" != "x$ac_hi"; do
  8689.   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8690.   cat >conftest.$ac_ext <<_ACEOF
  8691. #line $LINENO "configure"
  8692. #include "confdefs.h"
  8693. $ac_includes_default
  8694. #ifdef F77_DUMMY_MAIN
  8695. #  ifdef __cplusplus
  8696.      extern "C"
  8697. #  endif
  8698.    int F77_DUMMY_MAIN() { return 1; }
  8699. #endif
  8700. int
  8701. main ()
  8702. {
  8703. static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
  8704. test_array [0] = 0
  8705.  
  8706.   ;
  8707.   return 0;
  8708. }
  8709. _ACEOF
  8710. rm -f conftest.$ac_objext
  8711. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8712.   (eval $ac_compile) 2>&5
  8713.   ac_status=$?
  8714.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8715.   (exit $ac_status); } &&
  8716.          { ac_try='test -s conftest.$ac_objext'
  8717.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8718.   (eval $ac_try) 2>&5
  8719.   ac_status=$?
  8720.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8721.   (exit $ac_status); }; }; then
  8722.   ac_hi=$ac_mid
  8723. else
  8724.   echo "$as_me: failed program was:" >&5
  8725. cat conftest.$ac_ext >&5
  8726. ac_lo=`expr '(' $ac_mid ')' + 1`
  8727. fi
  8728. rm -f conftest.$ac_objext conftest.$ac_ext
  8729. done
  8730. case $ac_lo in
  8731. ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
  8732. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77" >&5
  8733. echo "$as_me: error: cannot compute sizeof (unsigned short), 77" >&2;}
  8734.    { (exit 1); exit 1; }; } ;;
  8735. esac
  8736. else
  8737.   if test "$cross_compiling" = yes; then
  8738.   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
  8739. echo "$as_me: error: cannot run test program while cross compiling" >&2;}
  8740.    { (exit 1); exit 1; }; }
  8741. else
  8742.   cat >conftest.$ac_ext <<_ACEOF
  8743. #line $LINENO "configure"
  8744. #include "confdefs.h"
  8745. $ac_includes_default
  8746. long longval () { return (long) (sizeof (unsigned short)); }
  8747. unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
  8748. #include <stdio.h>
  8749. #include <stdlib.h>
  8750. #ifdef F77_DUMMY_MAIN
  8751. #  ifdef __cplusplus
  8752.      extern "C"
  8753. #  endif
  8754.    int F77_DUMMY_MAIN() { return 1; }
  8755. #endif
  8756. int
  8757. main ()
  8758. {
  8759.  
  8760.   FILE *f = fopen ("conftest.val", "w");
  8761.   if (! f)
  8762.     exit (1);
  8763.   if (((long) (sizeof (unsigned short))) < 0)
  8764.     {
  8765.       long i = longval ();
  8766.       if (i != ((long) (sizeof (unsigned short))))
  8767.     exit (1);
  8768.       fprintf (f, "%ld\n", i);
  8769.     }
  8770.   else
  8771.     {
  8772.       unsigned long i = ulongval ();
  8773.       if (i != ((long) (sizeof (unsigned short))))
  8774.     exit (1);
  8775.       fprintf (f, "%lu\n", i);
  8776.     }
  8777.   exit (ferror (f) || fclose (f) != 0);
  8778.  
  8779.   ;
  8780.   return 0;
  8781. }
  8782. _ACEOF
  8783. rm -f conftest$ac_exeext
  8784. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8785.   (eval $ac_link) 2>&5
  8786.   ac_status=$?
  8787.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8788.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8789.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8790.   (eval $ac_try) 2>&5
  8791.   ac_status=$?
  8792.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8793.   (exit $ac_status); }; }; then
  8794.   ac_cv_sizeof_unsigned_short=`cat conftest.val`
  8795. else
  8796.   echo "$as_me: program exited with status $ac_status" >&5
  8797. echo "$as_me: failed program was:" >&5
  8798. cat conftest.$ac_ext >&5
  8799. ( exit $ac_status )
  8800. { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77" >&5
  8801. echo "$as_me: error: cannot compute sizeof (unsigned short), 77" >&2;}
  8802.    { (exit 1); exit 1; }; }
  8803. fi
  8804. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8805. fi
  8806. fi
  8807. rm -f conftest.val
  8808. else
  8809.   ac_cv_sizeof_unsigned_short=0
  8810. fi
  8811. fi
  8812. echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
  8813. echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
  8814. cat >>confdefs.h <<_ACEOF
  8815. #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
  8816. _ACEOF
  8817.  
  8818.  
  8819. echo "$as_me:$LINENO: checking for unsigned int" >&5
  8820. echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
  8821. if test "${ac_cv_type_unsigned_int+set}" = set; then
  8822.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8823. else
  8824.   cat >conftest.$ac_ext <<_ACEOF
  8825. #line $LINENO "configure"
  8826. #include "confdefs.h"
  8827. $ac_includes_default
  8828. #ifdef F77_DUMMY_MAIN
  8829. #  ifdef __cplusplus
  8830.      extern "C"
  8831. #  endif
  8832.    int F77_DUMMY_MAIN() { return 1; }
  8833. #endif
  8834. int
  8835. main ()
  8836. {
  8837. if ((unsigned int *) 0)
  8838.   return 0;
  8839. if (sizeof (unsigned int))
  8840.   return 0;
  8841.   ;
  8842.   return 0;
  8843. }
  8844. _ACEOF
  8845. rm -f conftest.$ac_objext
  8846. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8847.   (eval $ac_compile) 2>&5
  8848.   ac_status=$?
  8849.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8850.   (exit $ac_status); } &&
  8851.          { ac_try='test -s conftest.$ac_objext'
  8852.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8853.   (eval $ac_try) 2>&5
  8854.   ac_status=$?
  8855.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8856.   (exit $ac_status); }; }; then
  8857.   ac_cv_type_unsigned_int=yes
  8858. else
  8859.   echo "$as_me: failed program was:" >&5
  8860. cat conftest.$ac_ext >&5
  8861. ac_cv_type_unsigned_int=no
  8862. fi
  8863. rm -f conftest.$ac_objext conftest.$ac_ext
  8864. fi
  8865. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
  8866. echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
  8867.  
  8868. echo "$as_me:$LINENO: checking size of unsigned int" >&5
  8869. echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
  8870. if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
  8871.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8872. else
  8873.   if test "$ac_cv_type_unsigned_int" = yes; then
  8874.   # The cast to unsigned long works around a bug in the HP C Compiler
  8875.   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8876.   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8877.   # This bug is HP SR number 8606223364.
  8878.   if test "$cross_compiling" = yes; then
  8879.   # Depending upon the size, compute the lo and hi bounds.
  8880. cat >conftest.$ac_ext <<_ACEOF
  8881. #line $LINENO "configure"
  8882. #include "confdefs.h"
  8883. $ac_includes_default
  8884. #ifdef F77_DUMMY_MAIN
  8885. #  ifdef __cplusplus
  8886.      extern "C"
  8887. #  endif
  8888.    int F77_DUMMY_MAIN() { return 1; }
  8889. #endif
  8890. int
  8891. main ()
  8892. {
  8893. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
  8894. test_array [0] = 0
  8895.  
  8896.   ;
  8897.   return 0;
  8898. }
  8899. _ACEOF
  8900. rm -f conftest.$ac_objext
  8901. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8902.   (eval $ac_compile) 2>&5
  8903.   ac_status=$?
  8904.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8905.   (exit $ac_status); } &&
  8906.          { ac_try='test -s conftest.$ac_objext'
  8907.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8908.   (eval $ac_try) 2>&5
  8909.   ac_status=$?
  8910.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8911.   (exit $ac_status); }; }; then
  8912.   ac_lo=0 ac_mid=0
  8913.   while :; do
  8914.     cat >conftest.$ac_ext <<_ACEOF
  8915. #line $LINENO "configure"
  8916. #include "confdefs.h"
  8917. $ac_includes_default
  8918. #ifdef F77_DUMMY_MAIN
  8919. #  ifdef __cplusplus
  8920.      extern "C"
  8921. #  endif
  8922.    int F77_DUMMY_MAIN() { return 1; }
  8923. #endif
  8924. int
  8925. main ()
  8926. {
  8927. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
  8928. test_array [0] = 0
  8929.  
  8930.   ;
  8931.   return 0;
  8932. }
  8933. _ACEOF
  8934. rm -f conftest.$ac_objext
  8935. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8936.   (eval $ac_compile) 2>&5
  8937.   ac_status=$?
  8938.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8939.   (exit $ac_status); } &&
  8940.          { ac_try='test -s conftest.$ac_objext'
  8941.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8942.   (eval $ac_try) 2>&5
  8943.   ac_status=$?
  8944.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8945.   (exit $ac_status); }; }; then
  8946.   ac_hi=$ac_mid; break
  8947. else
  8948.   echo "$as_me: failed program was:" >&5
  8949. cat conftest.$ac_ext >&5
  8950. ac_lo=`expr $ac_mid + 1`
  8951.                     if test $ac_lo -le $ac_mid; then
  8952.                       ac_lo= ac_hi=
  8953.                       break
  8954.                     fi
  8955.                     ac_mid=`expr 2 '*' $ac_mid + 1`
  8956. fi
  8957. rm -f conftest.$ac_objext conftest.$ac_ext
  8958.   done
  8959. else
  8960.   echo "$as_me: failed program was:" >&5
  8961. cat conftest.$ac_ext >&5
  8962. cat >conftest.$ac_ext <<_ACEOF
  8963. #line $LINENO "configure"
  8964. #include "confdefs.h"
  8965. $ac_includes_default
  8966. #ifdef F77_DUMMY_MAIN
  8967. #  ifdef __cplusplus
  8968.      extern "C"
  8969. #  endif
  8970.    int F77_DUMMY_MAIN() { return 1; }
  8971. #endif
  8972. int
  8973. main ()
  8974. {
  8975. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
  8976. test_array [0] = 0
  8977.  
  8978.   ;
  8979.   return 0;
  8980. }
  8981. _ACEOF
  8982. rm -f conftest.$ac_objext
  8983. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8984.   (eval $ac_compile) 2>&5
  8985.   ac_status=$?
  8986.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8987.   (exit $ac_status); } &&
  8988.          { ac_try='test -s conftest.$ac_objext'
  8989.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8990.   (eval $ac_try) 2>&5
  8991.   ac_status=$?
  8992.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8993.   (exit $ac_status); }; }; then
  8994.   ac_hi=-1 ac_mid=-1
  8995.   while :; do
  8996.     cat >conftest.$ac_ext <<_ACEOF
  8997. #line $LINENO "configure"
  8998. #include "confdefs.h"
  8999. $ac_includes_default
  9000. #ifdef F77_DUMMY_MAIN
  9001. #  ifdef __cplusplus
  9002.      extern "C"
  9003. #  endif
  9004.    int F77_DUMMY_MAIN() { return 1; }
  9005. #endif
  9006. int
  9007. main ()
  9008. {
  9009. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
  9010. test_array [0] = 0
  9011.  
  9012.   ;
  9013.   return 0;
  9014. }
  9015. _ACEOF
  9016. rm -f conftest.$ac_objext
  9017. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9018.   (eval $ac_compile) 2>&5
  9019.   ac_status=$?
  9020.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9021.   (exit $ac_status); } &&
  9022.          { ac_try='test -s conftest.$ac_objext'
  9023.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9024.   (eval $ac_try) 2>&5
  9025.   ac_status=$?
  9026.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9027.   (exit $ac_status); }; }; then
  9028.   ac_lo=$ac_mid; break
  9029. else
  9030.   echo "$as_me: failed program was:" >&5
  9031. cat conftest.$ac_ext >&5
  9032. ac_hi=`expr '(' $ac_mid ')' - 1`
  9033.                        if test $ac_mid -le $ac_hi; then
  9034.                          ac_lo= ac_hi=
  9035.                          break
  9036.                        fi
  9037.                        ac_mid=`expr 2 '*' $ac_mid`
  9038. fi
  9039. rm -f conftest.$ac_objext conftest.$ac_ext
  9040.   done
  9041. else
  9042.   echo "$as_me: failed program was:" >&5
  9043. cat conftest.$ac_ext >&5
  9044. ac_lo= ac_hi=
  9045. fi
  9046. rm -f conftest.$ac_objext conftest.$ac_ext
  9047. fi
  9048. rm -f conftest.$ac_objext conftest.$ac_ext
  9049. # Binary search between lo and hi bounds.
  9050. while test "x$ac_lo" != "x$ac_hi"; do
  9051.   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  9052.   cat >conftest.$ac_ext <<_ACEOF
  9053. #line $LINENO "configure"
  9054. #include "confdefs.h"
  9055. $ac_includes_default
  9056. #ifdef F77_DUMMY_MAIN
  9057. #  ifdef __cplusplus
  9058.      extern "C"
  9059. #  endif
  9060.    int F77_DUMMY_MAIN() { return 1; }
  9061. #endif
  9062. int
  9063. main ()
  9064. {
  9065. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
  9066. test_array [0] = 0
  9067.  
  9068.   ;
  9069.   return 0;
  9070. }
  9071. _ACEOF
  9072. rm -f conftest.$ac_objext
  9073. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9074.   (eval $ac_compile) 2>&5
  9075.   ac_status=$?
  9076.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9077.   (exit $ac_status); } &&
  9078.          { ac_try='test -s conftest.$ac_objext'
  9079.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9080.   (eval $ac_try) 2>&5
  9081.   ac_status=$?
  9082.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9083.   (exit $ac_status); }; }; then
  9084.   ac_hi=$ac_mid
  9085. else
  9086.   echo "$as_me: failed program was:" >&5
  9087. cat conftest.$ac_ext >&5
  9088. ac_lo=`expr '(' $ac_mid ')' + 1`
  9089. fi
  9090. rm -f conftest.$ac_objext conftest.$ac_ext
  9091. done
  9092. case $ac_lo in
  9093. ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
  9094. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77" >&5
  9095. echo "$as_me: error: cannot compute sizeof (unsigned int), 77" >&2;}
  9096.    { (exit 1); exit 1; }; } ;;
  9097. esac
  9098. else
  9099.   if test "$cross_compiling" = yes; then
  9100.   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
  9101. echo "$as_me: error: cannot run test program while cross compiling" >&2;}
  9102.    { (exit 1); exit 1; }; }
  9103. else
  9104.   cat >conftest.$ac_ext <<_ACEOF
  9105. #line $LINENO "configure"
  9106. #include "confdefs.h"
  9107. $ac_includes_default
  9108. long longval () { return (long) (sizeof (unsigned int)); }
  9109. unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
  9110. #include <stdio.h>
  9111. #include <stdlib.h>
  9112. #ifdef F77_DUMMY_MAIN
  9113. #  ifdef __cplusplus
  9114.      extern "C"
  9115. #  endif
  9116.    int F77_DUMMY_MAIN() { return 1; }
  9117. #endif
  9118. int
  9119. main ()
  9120. {
  9121.  
  9122.   FILE *f = fopen ("conftest.val", "w");
  9123.   if (! f)
  9124.     exit (1);
  9125.   if (((long) (sizeof (unsigned int))) < 0)
  9126.     {
  9127.       long i = longval ();
  9128.       if (i != ((long) (sizeof (unsigned int))))
  9129.     exit (1);
  9130.       fprintf (f, "%ld\n", i);
  9131.     }
  9132.   else
  9133.     {
  9134.       unsigned long i = ulongval ();
  9135.       if (i != ((long) (sizeof (unsigned int))))
  9136.     exit (1);
  9137.       fprintf (f, "%lu\n", i);
  9138.     }
  9139.   exit (ferror (f) || fclose (f) != 0);
  9140.  
  9141.   ;
  9142.   return 0;
  9143. }
  9144. _ACEOF
  9145. rm -f conftest$ac_exeext
  9146. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9147.   (eval $ac_link) 2>&5
  9148.   ac_status=$?
  9149.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9150.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9151.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9152.   (eval $ac_try) 2>&5
  9153.   ac_status=$?
  9154.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9155.   (exit $ac_status); }; }; then
  9156.   ac_cv_sizeof_unsigned_int=`cat conftest.val`
  9157. else
  9158.   echo "$as_me: program exited with status $ac_status" >&5
  9159. echo "$as_me: failed program was:" >&5
  9160. cat conftest.$ac_ext >&5
  9161. ( exit $ac_status )
  9162. { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77" >&5
  9163. echo "$as_me: error: cannot compute sizeof (unsigned int), 77" >&2;}
  9164.    { (exit 1); exit 1; }; }
  9165. fi
  9166. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9167. fi
  9168. fi
  9169. rm -f conftest.val
  9170. else
  9171.   ac_cv_sizeof_unsigned_int=0
  9172. fi
  9173. fi
  9174. echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
  9175. echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
  9176. cat >>confdefs.h <<_ACEOF
  9177. #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  9178. _ACEOF
  9179.  
  9180.  
  9181. echo "$as_me:$LINENO: checking for unsigned long" >&5
  9182. echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
  9183. if test "${ac_cv_type_unsigned_long+set}" = set; then
  9184.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9185. else
  9186.   cat >conftest.$ac_ext <<_ACEOF
  9187. #line $LINENO "configure"
  9188. #include "confdefs.h"
  9189. $ac_includes_default
  9190. #ifdef F77_DUMMY_MAIN
  9191. #  ifdef __cplusplus
  9192.      extern "C"
  9193. #  endif
  9194.    int F77_DUMMY_MAIN() { return 1; }
  9195. #endif
  9196. int
  9197. main ()
  9198. {
  9199. if ((unsigned long *) 0)
  9200.   return 0;
  9201. if (sizeof (unsigned long))
  9202.   return 0;
  9203.   ;
  9204.   return 0;
  9205. }
  9206. _ACEOF
  9207. rm -f conftest.$ac_objext
  9208. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9209.   (eval $ac_compile) 2>&5
  9210.   ac_status=$?
  9211.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9212.   (exit $ac_status); } &&
  9213.          { ac_try='test -s conftest.$ac_objext'
  9214.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9215.   (eval $ac_try) 2>&5
  9216.   ac_status=$?
  9217.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9218.   (exit $ac_status); }; }; then
  9219.   ac_cv_type_unsigned_long=yes
  9220. else
  9221.   echo "$as_me: failed program was:" >&5
  9222. cat conftest.$ac_ext >&5
  9223. ac_cv_type_unsigned_long=no
  9224. fi
  9225. rm -f conftest.$ac_objext conftest.$ac_ext
  9226. fi
  9227. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
  9228. echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
  9229.  
  9230. echo "$as_me:$LINENO: checking size of unsigned long" >&5
  9231. echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
  9232. if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
  9233.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9234. else
  9235.   if test "$ac_cv_type_unsigned_long" = yes; then
  9236.   # The cast to unsigned long works around a bug in the HP C Compiler
  9237.   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  9238.   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  9239.   # This bug is HP SR number 8606223364.
  9240.   if test "$cross_compiling" = yes; then
  9241.   # Depending upon the size, compute the lo and hi bounds.
  9242. cat >conftest.$ac_ext <<_ACEOF
  9243. #line $LINENO "configure"
  9244. #include "confdefs.h"
  9245. $ac_includes_default
  9246. #ifdef F77_DUMMY_MAIN
  9247. #  ifdef __cplusplus
  9248.      extern "C"
  9249. #  endif
  9250.    int F77_DUMMY_MAIN() { return 1; }
  9251. #endif
  9252. int
  9253. main ()
  9254. {
  9255. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
  9256. test_array [0] = 0
  9257.  
  9258.   ;
  9259.   return 0;
  9260. }
  9261. _ACEOF
  9262. rm -f conftest.$ac_objext
  9263. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9264.   (eval $ac_compile) 2>&5
  9265.   ac_status=$?
  9266.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9267.   (exit $ac_status); } &&
  9268.          { ac_try='test -s conftest.$ac_objext'
  9269.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9270.   (eval $ac_try) 2>&5
  9271.   ac_status=$?
  9272.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9273.   (exit $ac_status); }; }; then
  9274.   ac_lo=0 ac_mid=0
  9275.   while :; do
  9276.     cat >conftest.$ac_ext <<_ACEOF
  9277. #line $LINENO "configure"
  9278. #include "confdefs.h"
  9279. $ac_includes_default
  9280. #ifdef F77_DUMMY_MAIN
  9281. #  ifdef __cplusplus
  9282.      extern "C"
  9283. #  endif
  9284.    int F77_DUMMY_MAIN() { return 1; }
  9285. #endif
  9286. int
  9287. main ()
  9288. {
  9289. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
  9290. test_array [0] = 0
  9291.  
  9292.   ;
  9293.   return 0;
  9294. }
  9295. _ACEOF
  9296. rm -f conftest.$ac_objext
  9297. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9298.   (eval $ac_compile) 2>&5
  9299.   ac_status=$?
  9300.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9301.   (exit $ac_status); } &&
  9302.          { ac_try='test -s conftest.$ac_objext'
  9303.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9304.   (eval $ac_try) 2>&5
  9305.   ac_status=$?
  9306.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9307.   (exit $ac_status); }; }; then
  9308.   ac_hi=$ac_mid; break
  9309. else
  9310.   echo "$as_me: failed program was:" >&5
  9311. cat conftest.$ac_ext >&5
  9312. ac_lo=`expr $ac_mid + 1`
  9313.                     if test $ac_lo -le $ac_mid; then
  9314.                       ac_lo= ac_hi=
  9315.                       break
  9316.                     fi
  9317.                     ac_mid=`expr 2 '*' $ac_mid + 1`
  9318. fi
  9319. rm -f conftest.$ac_objext conftest.$ac_ext
  9320.   done
  9321. else
  9322.   echo "$as_me: failed program was:" >&5
  9323. cat conftest.$ac_ext >&5
  9324. cat >conftest.$ac_ext <<_ACEOF
  9325. #line $LINENO "configure"
  9326. #include "confdefs.h"
  9327. $ac_includes_default
  9328. #ifdef F77_DUMMY_MAIN
  9329. #  ifdef __cplusplus
  9330.      extern "C"
  9331. #  endif
  9332.    int F77_DUMMY_MAIN() { return 1; }
  9333. #endif
  9334. int
  9335. main ()
  9336. {
  9337. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
  9338. test_array [0] = 0
  9339.  
  9340.   ;
  9341.   return 0;
  9342. }
  9343. _ACEOF
  9344. rm -f conftest.$ac_objext
  9345. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9346.   (eval $ac_compile) 2>&5
  9347.   ac_status=$?
  9348.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9349.   (exit $ac_status); } &&
  9350.          { ac_try='test -s conftest.$ac_objext'
  9351.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9352.   (eval $ac_try) 2>&5
  9353.   ac_status=$?
  9354.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9355.   (exit $ac_status); }; }; then
  9356.   ac_hi=-1 ac_mid=-1
  9357.   while :; do
  9358.     cat >conftest.$ac_ext <<_ACEOF
  9359. #line $LINENO "configure"
  9360. #include "confdefs.h"
  9361. $ac_includes_default
  9362. #ifdef F77_DUMMY_MAIN
  9363. #  ifdef __cplusplus
  9364.      extern "C"
  9365. #  endif
  9366.    int F77_DUMMY_MAIN() { return 1; }
  9367. #endif
  9368. int
  9369. main ()
  9370. {
  9371. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
  9372. test_array [0] = 0
  9373.  
  9374.   ;
  9375.   return 0;
  9376. }
  9377. _ACEOF
  9378. rm -f conftest.$ac_objext
  9379. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9380.   (eval $ac_compile) 2>&5
  9381.   ac_status=$?
  9382.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9383.   (exit $ac_status); } &&
  9384.          { ac_try='test -s conftest.$ac_objext'
  9385.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9386.   (eval $ac_try) 2>&5
  9387.   ac_status=$?
  9388.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9389.   (exit $ac_status); }; }; then
  9390.   ac_lo=$ac_mid; break
  9391. else
  9392.   echo "$as_me: failed program was:" >&5
  9393. cat conftest.$ac_ext >&5
  9394. ac_hi=`expr '(' $ac_mid ')' - 1`
  9395.                        if test $ac_mid -le $ac_hi; then
  9396.                          ac_lo= ac_hi=
  9397.                          break
  9398.                        fi
  9399.                        ac_mid=`expr 2 '*' $ac_mid`
  9400. fi
  9401. rm -f conftest.$ac_objext conftest.$ac_ext
  9402.   done
  9403. else
  9404.   echo "$as_me: failed program was:" >&5
  9405. cat conftest.$ac_ext >&5
  9406. ac_lo= ac_hi=
  9407. fi
  9408. rm -f conftest.$ac_objext conftest.$ac_ext
  9409. fi
  9410. rm -f conftest.$ac_objext conftest.$ac_ext
  9411. # Binary search between lo and hi bounds.
  9412. while test "x$ac_lo" != "x$ac_hi"; do
  9413.   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  9414.   cat >conftest.$ac_ext <<_ACEOF
  9415. #line $LINENO "configure"
  9416. #include "confdefs.h"
  9417. $ac_includes_default
  9418. #ifdef F77_DUMMY_MAIN
  9419. #  ifdef __cplusplus
  9420.      extern "C"
  9421. #  endif
  9422.    int F77_DUMMY_MAIN() { return 1; }
  9423. #endif
  9424. int
  9425. main ()
  9426. {
  9427. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
  9428. test_array [0] = 0
  9429.  
  9430.   ;
  9431.   return 0;
  9432. }
  9433. _ACEOF
  9434. rm -f conftest.$ac_objext
  9435. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9436.   (eval $ac_compile) 2>&5
  9437.   ac_status=$?
  9438.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9439.   (exit $ac_status); } &&
  9440.          { ac_try='test -s conftest.$ac_objext'
  9441.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9442.   (eval $ac_try) 2>&5
  9443.   ac_status=$?
  9444.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9445.   (exit $ac_status); }; }; then
  9446.   ac_hi=$ac_mid
  9447. else
  9448.   echo "$as_me: failed program was:" >&5
  9449. cat conftest.$ac_ext >&5
  9450. ac_lo=`expr '(' $ac_mid ')' + 1`
  9451. fi
  9452. rm -f conftest.$ac_objext conftest.$ac_ext
  9453. done
  9454. case $ac_lo in
  9455. ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
  9456. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
  9457. echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
  9458.    { (exit 1); exit 1; }; } ;;
  9459. esac
  9460. else
  9461.   if test "$cross_compiling" = yes; then
  9462.   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
  9463. echo "$as_me: error: cannot run test program while cross compiling" >&2;}
  9464.    { (exit 1); exit 1; }; }
  9465. else
  9466.   cat >conftest.$ac_ext <<_ACEOF
  9467. #line $LINENO "configure"
  9468. #include "confdefs.h"
  9469. $ac_includes_default
  9470. long longval () { return (long) (sizeof (unsigned long)); }
  9471. unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
  9472. #include <stdio.h>
  9473. #include <stdlib.h>
  9474. #ifdef F77_DUMMY_MAIN
  9475. #  ifdef __cplusplus
  9476.      extern "C"
  9477. #  endif
  9478.    int F77_DUMMY_MAIN() { return 1; }
  9479. #endif
  9480. int
  9481. main ()
  9482. {
  9483.  
  9484.   FILE *f = fopen ("conftest.val", "w");
  9485.   if (! f)
  9486.     exit (1);
  9487.   if (((long) (sizeof (unsigned long))) < 0)
  9488.     {
  9489.       long i = longval ();
  9490.       if (i != ((long) (sizeof (unsigned long))))
  9491.     exit (1);
  9492.       fprintf (f, "%ld\n", i);
  9493.     }
  9494.   else
  9495.     {
  9496.       unsigned long i = ulongval ();
  9497.       if (i != ((long) (sizeof (unsigned long))))
  9498.     exit (1);
  9499.       fprintf (f, "%lu\n", i);
  9500.     }
  9501.   exit (ferror (f) || fclose (f) != 0);
  9502.  
  9503.   ;
  9504.   return 0;
  9505. }
  9506. _ACEOF
  9507. rm -f conftest$ac_exeext
  9508. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9509.   (eval $ac_link) 2>&5
  9510.   ac_status=$?
  9511.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9512.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9513.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9514.   (eval $ac_try) 2>&5
  9515.   ac_status=$?
  9516.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9517.   (exit $ac_status); }; }; then
  9518.   ac_cv_sizeof_unsigned_long=`cat conftest.val`
  9519. else
  9520.   echo "$as_me: program exited with status $ac_status" >&5
  9521. echo "$as_me: failed program was:" >&5
  9522. cat conftest.$ac_ext >&5
  9523. ( exit $ac_status )
  9524. { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
  9525. echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
  9526.    { (exit 1); exit 1; }; }
  9527. fi
  9528. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9529. fi
  9530. fi
  9531. rm -f conftest.val
  9532. else
  9533.   ac_cv_sizeof_unsigned_long=0
  9534. fi
  9535. fi
  9536. echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
  9537. echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
  9538. cat >>confdefs.h <<_ACEOF
  9539. #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  9540. _ACEOF
  9541.  
  9542.  
  9543.  
  9544. LIBS="$LIBS $wrap_LIB"
  9545.  
  9546. CPPFLAGS="$CPPFLAGS -DLIBDIR=\\\"$libdir\\\" -DCONFDIR=\\\"$sysconfdir/stunnel\\\" -DPIDFILE=\\\"$localstatedir/run/stunnel.pid\\\""
  9547.  
  9548. ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile tools/Makefile tools/stunnel.conf-sample tools/stunnel.init"
  9549.  
  9550. cat >confcache <<\_ACEOF
  9551. # This file is a shell script that caches the results of configure
  9552. # tests run on this system so they can be shared between configure
  9553. # scripts and configure runs, see configure's option --config-cache.
  9554. # It is not useful on other systems.  If it contains results you don't
  9555. # want to keep, you may remove or edit it.
  9556. #
  9557. # config.status only pays attention to the cache file if you give it
  9558. # the --recheck option to rerun configure.
  9559. #
  9560. # `ac_cv_env_foo' variables (set or unset) will be overriden when
  9561. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9562. # following values.
  9563.  
  9564. _ACEOF
  9565.  
  9566. # The following way of writing the cache mishandles newlines in values,
  9567. # but we know of no workaround that is simple, portable, and efficient.
  9568. # So, don't put newlines in cache variables' values.
  9569. # Ultrix sh set writes to stderr and can't be redirected directly,
  9570. # and sets the high bit in the cache file unless we assign to the vars.
  9571. {
  9572.   (set) 2>&1 |
  9573.     case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9574.     *ac_space=\ *)
  9575.       # `set' does not quote correctly, so add quotes (double-quote
  9576.       # substitution turns \\\\ into \\, and sed turns \\ into \).
  9577.       sed -n \
  9578.         "s/'/'\\\\''/g;
  9579.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9580.       ;;
  9581.     *)
  9582.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  9583.       sed -n \
  9584.         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9585.       ;;
  9586.     esac;
  9587. } |
  9588.   sed '
  9589.      t clear
  9590.      : clear
  9591.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9592.      t end
  9593.      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9594.      : end' >>confcache
  9595. if cmp -s $cache_file confcache; then :; else
  9596.   if test -w $cache_file; then
  9597.     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  9598.     cat confcache >$cache_file
  9599.   else
  9600.     echo "not updating unwritable cache $cache_file"
  9601.   fi
  9602. fi
  9603. rm -f confcache
  9604.  
  9605. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9606. # Let make expand exec_prefix.
  9607. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9608.  
  9609. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  9610. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  9611. # trailing colons and then remove the whole line if VPATH becomes empty
  9612. # (actually we leave an empty line to preserve line numbers).
  9613. if test "x$srcdir" = x.; then
  9614.   ac_vpsub='/^[     ]*VPATH[     ]*=/{
  9615. s/:*\$(srcdir):*/:/;
  9616. s/:*\${srcdir}:*/:/;
  9617. s/:*@srcdir@:*/:/;
  9618. s/^\([^=]*=[     ]*\):*/\1/;
  9619. s/:*$//;
  9620. s/^[^=]*=[     ]*$//;
  9621. }'
  9622. fi
  9623.  
  9624. # Transform confdefs.h into DEFS.
  9625. # Protect against shell expansion while executing Makefile rules.
  9626. # Protect against Makefile macro expansion.
  9627. #
  9628. # If the first sed substitution is executed (which looks for macros that
  9629. # take arguments), then we branch to the quote section.  Otherwise,
  9630. # look for a macro that doesn't take arguments.
  9631. cat >confdef2opt.sed <<\_ACEOF
  9632. t clear
  9633. : clear
  9634. s,^[     ]*#[     ]*define[     ][     ]*\([^     (][^     (]*([^)]*)\)[     ]*\(.*\),-D\1=\2,g
  9635. t quote
  9636. s,^[     ]*#[     ]*define[     ][     ]*\([^     ][^     ]*\)[     ]*\(.*\),-D\1=\2,g
  9637. t quote
  9638. d
  9639. : quote
  9640. s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
  9641. s,\[,\\&,g
  9642. s,\],\\&,g
  9643. s,\$,$$,g
  9644. p
  9645. _ACEOF
  9646. # We use echo to avoid assuming a particular line-breaking character.
  9647. # The extra dot is to prevent the shell from consuming trailing
  9648. # line-breaks from the sub-command output.  A line-break within
  9649. # single-quotes doesn't work because, if this script is created in a
  9650. # platform that uses two characters for line-breaks (e.g., DOS), tr
  9651. # would break.
  9652. ac_LF_and_DOT=`echo; echo .`
  9653. DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
  9654. rm -f confdef2opt.sed
  9655.  
  9656.  
  9657.  
  9658. : ${CONFIG_STATUS=./config.status}
  9659. ac_clean_files_save=$ac_clean_files
  9660. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9661. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  9662. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9663. cat >$CONFIG_STATUS <<_ACEOF
  9664. #! $SHELL
  9665. # Generated by $as_me.
  9666. # Run this file to recreate the current configuration.
  9667. # Compiler output produced by configure, useful for debugging
  9668. # configure, is in config.log if it exists.
  9669.  
  9670. debug=false
  9671. SHELL=\${CONFIG_SHELL-$SHELL}
  9672. _ACEOF
  9673.  
  9674. cat >>$CONFIG_STATUS <<\_ACEOF
  9675.  
  9676. ## --------------------- ##
  9677. ## M4sh Initialization.  ##
  9678. ## --------------------- ##
  9679.  
  9680. # Be Bourne compatible
  9681. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  9682.   emulate sh
  9683.   NULLCMD=:
  9684. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  9685.   set -o posix
  9686. fi
  9687.  
  9688. # NLS nuisances.
  9689. # Support unset when possible.
  9690. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  9691.   as_unset=unset
  9692. else
  9693.   as_unset=false
  9694. fi
  9695.  
  9696. (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
  9697.     { $as_unset LANG || test "${LANG+set}" != set; } ||
  9698.       { LANG=C; export LANG; }
  9699. (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
  9700.     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
  9701.       { LC_ALL=C; export LC_ALL; }
  9702. (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
  9703.     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
  9704.       { LC_TIME=C; export LC_TIME; }
  9705. (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
  9706.     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
  9707.       { LC_CTYPE=C; export LC_CTYPE; }
  9708. (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
  9709.     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
  9710.       { LANGUAGE=C; export LANGUAGE; }
  9711. (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
  9712.     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
  9713.       { LC_COLLATE=C; export LC_COLLATE; }
  9714. (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
  9715.     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
  9716.       { LC_NUMERIC=C; export LC_NUMERIC; }
  9717. (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
  9718.     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
  9719.       { LC_MESSAGES=C; export LC_MESSAGES; }
  9720.  
  9721.  
  9722. # Name of the executable.
  9723. as_me=`(basename "$0") 2>/dev/null ||
  9724. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9725.      X"$0" : 'X\(//\)$' \| \
  9726.      X"$0" : 'X\(/\)$' \| \
  9727.      .     : '\(.\)' 2>/dev/null ||
  9728. echo X/"$0" |
  9729.     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  9730.         /^X\/\(\/\/\)$/{ s//\1/; q; }
  9731.         /^X\/\(\/\).*/{ s//\1/; q; }
  9732.         s/.*/./; q'`
  9733.  
  9734. # PATH needs CR, and LINENO needs CR and PATH.
  9735. # Avoid depending upon Character Ranges.
  9736. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9737. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9738. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9739. as_cr_digits='0123456789'
  9740. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9741.  
  9742. # The user is always right.
  9743. if test "${PATH_SEPARATOR+set}" != set; then
  9744.   echo "#! /bin/sh" >conftest.sh
  9745.   echo  "exit 0"   >>conftest.sh
  9746.   chmod +x conftest.sh
  9747.   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
  9748.     PATH_SEPARATOR=';'
  9749.   else
  9750.     PATH_SEPARATOR=:
  9751.   fi
  9752.   rm -f conftest.sh
  9753. fi
  9754.  
  9755.  
  9756.   as_lineno_1=$LINENO
  9757.   as_lineno_2=$LINENO
  9758.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9759.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  9760.   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  9761.   # Find who we are.  Look in the path if we contain no path at all
  9762.   # relative or not.
  9763.   case $0 in
  9764.     *[\\/]* ) as_myself=$0 ;;
  9765.     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9766. for as_dir in $PATH
  9767. do
  9768.   IFS=$as_save_IFS
  9769.   test -z "$as_dir" && as_dir=.
  9770.   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9771. done
  9772.  
  9773.        ;;
  9774.   esac
  9775.   # We did not find ourselves, most probably we were run as `sh COMMAND'
  9776.   # in which case we are not to be found in the path.
  9777.   if test "x$as_myself" = x; then
  9778.     as_myself=$0
  9779.   fi
  9780.   if test ! -f "$as_myself"; then
  9781.     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  9782. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  9783.    { (exit 1); exit 1; }; }
  9784.   fi
  9785.   case $CONFIG_SHELL in
  9786.   '')
  9787.     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9788. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  9789. do
  9790.   IFS=$as_save_IFS
  9791.   test -z "$as_dir" && as_dir=.
  9792.   for as_base in sh bash ksh sh5; do
  9793.      case $as_dir in
  9794.      /*)
  9795.        if ("$as_dir/$as_base" -c '
  9796.   as_lineno_1=$LINENO
  9797.   as_lineno_2=$LINENO
  9798.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9799.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  9800.   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
  9801.          CONFIG_SHELL=$as_dir/$as_base
  9802.          export CONFIG_SHELL
  9803.          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  9804.        fi;;
  9805.      esac
  9806.        done
  9807. done
  9808. ;;
  9809.   esac
  9810.  
  9811.   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  9812.   # uniformly replaced by the line number.  The first 'sed' inserts a
  9813.   # line-number line before each line; the second 'sed' does the real
  9814.   # work.  The second script uses 'N' to pair each line-number line
  9815.   # with the numbered line, and appends trailing '-' during
  9816.   # substitution so that $LINENO is not a special case at line end.
  9817.   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  9818.   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  9819.   sed '=' <$as_myself |
  9820.     sed '
  9821.       N
  9822.       s,$,-,
  9823.       : loop
  9824.       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  9825.       t loop
  9826.       s,-$,,
  9827.       s,^['$as_cr_digits']*\n,,
  9828.     ' >$as_me.lineno &&
  9829.   chmod +x $as_me.lineno ||
  9830.     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  9831. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  9832.    { (exit 1); exit 1; }; }
  9833.  
  9834.   # Don't try to exec as it changes $[0], causing all sort of problems
  9835.   # (the dirname of $[0] is not the place where we might find the
  9836.   # original and so on.  Autoconf is especially sensible to this).
  9837.   . ./$as_me.lineno
  9838.   # Exit status is that of the last command.
  9839.   exit
  9840. }
  9841.  
  9842.  
  9843. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  9844.   *c*,-n*) ECHO_N= ECHO_C='
  9845. ' ECHO_T='    ' ;;
  9846.   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  9847.   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
  9848. esac
  9849.  
  9850. if expr a : '\(a\)' >/dev/null 2>&1; then
  9851.   as_expr=expr
  9852. else
  9853.   as_expr=false
  9854. fi
  9855.  
  9856. rm -f conf$$ conf$$.exe conf$$.file
  9857. echo >conf$$.file
  9858. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9859.   # We could just check for DJGPP; but this test a) works b) is more generic
  9860.   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  9861.   if test -f conf$$.exe; then
  9862.     # Don't use ln at all; we don't have any links
  9863.     as_ln_s='cp -p'
  9864.   else
  9865.     as_ln_s='ln -s'
  9866.   fi
  9867. elif ln conf$$.file conf$$ 2>/dev/null; then
  9868.   as_ln_s=ln
  9869. else
  9870.   as_ln_s='cp -p'
  9871. fi
  9872. rm -f conf$$ conf$$.exe conf$$.file
  9873.  
  9874. as_executable_p="test -f"
  9875.  
  9876. # Sed expression to map a string onto a valid CPP name.
  9877. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  9878.  
  9879. # Sed expression to map a string onto a valid variable name.
  9880. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  9881.  
  9882.  
  9883. # IFS
  9884. # We need space, tab and new line, in precisely that order.
  9885. as_nl='
  9886. '
  9887. IFS="     $as_nl"
  9888.  
  9889. # CDPATH.
  9890. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
  9891.  
  9892. exec 6>&1
  9893.  
  9894. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  9895. # report actual input values of CONFIG_FILES etc. instead of their
  9896. # values after options handling.  Logging --version etc. is OK.
  9897. exec 5>>config.log
  9898. {
  9899.   echo
  9900.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9901. ## Running $as_me. ##
  9902. _ASBOX
  9903. } >&5
  9904. cat >&5 <<_CSEOF
  9905.  
  9906. This file was extended by stunnel $as_me 4.04, which was
  9907. generated by GNU Autoconf 2.53.  Invocation command line was
  9908.  
  9909.   CONFIG_FILES    = $CONFIG_FILES
  9910.   CONFIG_HEADERS  = $CONFIG_HEADERS
  9911.   CONFIG_LINKS    = $CONFIG_LINKS
  9912.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  9913.   $ $0 $@
  9914.  
  9915. _CSEOF
  9916. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  9917. echo >&5
  9918. _ACEOF
  9919.  
  9920. # Files that config.status was made for.
  9921. if test -n "$ac_config_files"; then
  9922.   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  9923. fi
  9924.  
  9925. if test -n "$ac_config_headers"; then
  9926.   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  9927. fi
  9928.  
  9929. if test -n "$ac_config_links"; then
  9930.   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  9931. fi
  9932.  
  9933. if test -n "$ac_config_commands"; then
  9934.   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  9935. fi
  9936.  
  9937. cat >>$CONFIG_STATUS <<\_ACEOF
  9938.  
  9939. ac_cs_usage="\
  9940. \`$as_me' instantiates files from templates according to the
  9941. current configuration.
  9942.  
  9943. Usage: $0 [OPTIONS] [FILE]...
  9944.  
  9945.   -h, --help       print this help, then exit
  9946.   -V, --version    print version number, then exit
  9947.   -d, --debug      don't remove temporary files
  9948.       --recheck    update $as_me by reconfiguring in the same conditions
  9949.   --file=FILE[:TEMPLATE]
  9950.                    instantiate the configuration file FILE
  9951.  
  9952. Configuration files:
  9953. $config_files
  9954.  
  9955. Report bugs to <bug-autoconf@gnu.org>."
  9956. _ACEOF
  9957.  
  9958. cat >>$CONFIG_STATUS <<_ACEOF
  9959. ac_cs_version="\\
  9960. stunnel config.status 4.04
  9961. configured by $0, generated by GNU Autoconf 2.53,
  9962.   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  9963.  
  9964. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  9965. Free Software Foundation, Inc.
  9966. This config.status script is free software; the Free Software Foundation
  9967. gives unlimited permission to copy, distribute and modify it."
  9968. srcdir=$srcdir
  9969. INSTALL="$INSTALL"
  9970. _ACEOF
  9971.  
  9972. cat >>$CONFIG_STATUS <<\_ACEOF
  9973. # If no file are specified by the user, then we need to provide default
  9974. # value.  By we need to know if files were specified by the user.
  9975. ac_need_defaults=:
  9976. while test $# != 0
  9977. do
  9978.   case $1 in
  9979.   --*=*)
  9980.     ac_option=`expr "x$1" : 'x\([^=]*\)='`
  9981.     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  9982.     shift
  9983.     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
  9984.     shift
  9985.     ;;
  9986.   -*);;
  9987.   *) # This is not an option, so the user has probably given explicit
  9988.      # arguments.
  9989.      ac_need_defaults=false;;
  9990.   esac
  9991.  
  9992.   case $1 in
  9993.   # Handling of the options.
  9994. _ACEOF
  9995. cat >>$CONFIG_STATUS <<_ACEOF
  9996.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9997.     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
  9998.     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
  9999. _ACEOF
  10000. cat >>$CONFIG_STATUS <<\_ACEOF
  10001.   --version | --vers* | -V )
  10002.     echo "$ac_cs_version"; exit 0 ;;
  10003.   --he | --h)
  10004.     # Conflict between --help and --header
  10005.     { { echo "$as_me:$LINENO: error: ambiguous option: $1
  10006. Try \`$0 --help' for more information." >&5
  10007. echo "$as_me: error: ambiguous option: $1
  10008. Try \`$0 --help' for more information." >&2;}
  10009.    { (exit 1); exit 1; }; };;
  10010.   --help | --hel | -h )
  10011.     echo "$ac_cs_usage"; exit 0 ;;
  10012.   --debug | --d* | -d )
  10013.     debug=: ;;
  10014.   --file | --fil | --fi | --f )
  10015.     shift
  10016.     CONFIG_FILES="$CONFIG_FILES $1"
  10017.     ac_need_defaults=false;;
  10018.   --header | --heade | --head | --hea )
  10019.     shift
  10020.     CONFIG_HEADERS="$CONFIG_HEADERS $1"
  10021.     ac_need_defaults=false;;
  10022.  
  10023.   # This is an error.
  10024.   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  10025. Try \`$0 --help' for more information." >&5
  10026. echo "$as_me: error: unrecognized option: $1
  10027. Try \`$0 --help' for more information." >&2;}
  10028.    { (exit 1); exit 1; }; } ;;
  10029.  
  10030.   *) ac_config_targets="$ac_config_targets $1" ;;
  10031.  
  10032.   esac
  10033.   shift
  10034. done
  10035.  
  10036. _ACEOF
  10037.  
  10038.  
  10039.  
  10040.  
  10041.  
  10042. cat >>$CONFIG_STATUS <<\_ACEOF
  10043. for ac_config_target in $ac_config_targets
  10044. do
  10045.   case "$ac_config_target" in
  10046.   # Handling of arguments.
  10047.   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10048.   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10049.   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  10050.   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
  10051.   "tools/stunnel.conf-sample" ) CONFIG_FILES="$CONFIG_FILES tools/stunnel.conf-sample" ;;
  10052.   "tools/stunnel.init" ) CONFIG_FILES="$CONFIG_FILES tools/stunnel.init" ;;
  10053.   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10054. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10055.    { (exit 1); exit 1; }; };;
  10056.   esac
  10057. done
  10058.  
  10059. # If the user did not use the arguments to specify the items to instantiate,
  10060. # then the envvar interface is used.  Set only those that are not.
  10061. # We use the long form for the default assignment because of an extremely
  10062. # bizarre bug on SunOS 4.1.3.
  10063. if $ac_need_defaults; then
  10064.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10065. fi
  10066.  
  10067. # Create a temporary directory, and hook for its removal unless debugging.
  10068. $debug ||
  10069. {
  10070.   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  10071.   trap '{ (exit 1); exit 1; }' 1 2 13 15
  10072. }
  10073.  
  10074. # Create a (secure) tmp directory for tmp files.
  10075. : ${TMPDIR=/tmp}
  10076. {
  10077.   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  10078.   test -n "$tmp" && test -d "$tmp"
  10079. }  ||
  10080. {
  10081.   tmp=$TMPDIR/cs$$-$RANDOM
  10082.   (umask 077 && mkdir $tmp)
  10083. } ||
  10084. {
  10085.    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  10086.    { (exit 1); exit 1; }
  10087. }
  10088.  
  10089. _ACEOF
  10090.  
  10091. cat >>$CONFIG_STATUS <<_ACEOF
  10092.  
  10093. #
  10094. # CONFIG_FILES section.
  10095. #
  10096.  
  10097. # No need to generate the scripts if there are no CONFIG_FILES.
  10098. # This happens for instance when ./config.status config.h
  10099. if test -n "\$CONFIG_FILES"; then
  10100.   # Protect against being on the right side of a sed subst in config.status.
  10101.   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  10102.    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  10103. s,@SHELL@,$SHELL,;t t
  10104. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  10105. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  10106. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  10107. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  10108. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  10109. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  10110. s,@exec_prefix@,$exec_prefix,;t t
  10111. s,@prefix@,$prefix,;t t
  10112. s,@program_transform_name@,$program_transform_name,;t t
  10113. s,@bindir@,$bindir,;t t
  10114. s,@sbindir@,$sbindir,;t t
  10115. s,@libexecdir@,$libexecdir,;t t
  10116. s,@datadir@,$datadir,;t t
  10117. s,@sysconfdir@,$sysconfdir,;t t
  10118. s,@sharedstatedir@,$sharedstatedir,;t t
  10119. s,@localstatedir@,$localstatedir,;t t
  10120. s,@libdir@,$libdir,;t t
  10121. s,@includedir@,$includedir,;t t
  10122. s,@oldincludedir@,$oldincludedir,;t t
  10123. s,@infodir@,$infodir,;t t
  10124. s,@mandir@,$mandir,;t t
  10125. s,@build_alias@,$build_alias,;t t
  10126. s,@host_alias@,$host_alias,;t t
  10127. s,@target_alias@,$target_alias,;t t
  10128. s,@DEFS@,$DEFS,;t t
  10129. s,@ECHO_C@,$ECHO_C,;t t
  10130. s,@ECHO_N@,$ECHO_N,;t t
  10131. s,@ECHO_T@,$ECHO_T,;t t
  10132. s,@LIBS@,$LIBS,;t t
  10133. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  10134. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  10135. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  10136. s,@PACKAGE@,$PACKAGE,;t t
  10137. s,@VERSION@,$VERSION,;t t
  10138. s,@ACLOCAL@,$ACLOCAL,;t t
  10139. s,@AUTOCONF@,$AUTOCONF,;t t
  10140. s,@AUTOMAKE@,$AUTOMAKE,;t t
  10141. s,@AUTOHEADER@,$AUTOHEADER,;t t
  10142. s,@MAKEINFO@,$MAKEINFO,;t t
  10143. s,@SET_MAKE@,$SET_MAKE,;t t
  10144. s,@build@,$build,;t t
  10145. s,@build_cpu@,$build_cpu,;t t
  10146. s,@build_vendor@,$build_vendor,;t t
  10147. s,@build_os@,$build_os,;t t
  10148. s,@host@,$host,;t t
  10149. s,@host_cpu@,$host_cpu,;t t
  10150. s,@host_vendor@,$host_vendor,;t t
  10151. s,@host_os@,$host_os,;t t
  10152. s,@CC@,$CC,;t t
  10153. s,@CFLAGS@,$CFLAGS,;t t
  10154. s,@LDFLAGS@,$LDFLAGS,;t t
  10155. s,@CPPFLAGS@,$CPPFLAGS,;t t
  10156. s,@ac_ct_CC@,$ac_ct_CC,;t t
  10157. s,@EXEEXT@,$EXEEXT,;t t
  10158. s,@OBJEXT@,$OBJEXT,;t t
  10159. s,@LN_S@,$LN_S,;t t
  10160. s,@ECHO@,$ECHO,;t t
  10161. s,@RANLIB@,$RANLIB,;t t
  10162. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  10163. s,@STRIP@,$STRIP,;t t
  10164. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  10165. s,@CPP@,$CPP,;t t
  10166. s,@LIBTOOL@,$LIBTOOL,;t t
  10167. s,@ssldir@,$ssldir,;t t
  10168. s,@RANDOM_FILE@,$RANDOM_FILE,;t t
  10169. s,@USE_DH@,$USE_DH,;t t
  10170. CEOF
  10171.  
  10172. _ACEOF
  10173.  
  10174.   cat >>$CONFIG_STATUS <<\_ACEOF
  10175.   # Split the substitutions into bite-sized pieces for seds with
  10176.   # small command number limits, like on Digital OSF/1 and HP-UX.
  10177.   ac_max_sed_lines=48
  10178.   ac_sed_frag=1 # Number of current file.
  10179.   ac_beg=1 # First line for current file.
  10180.   ac_end=$ac_max_sed_lines # Line after last line for current file.
  10181.   ac_more_lines=:
  10182.   ac_sed_cmds=
  10183.   while $ac_more_lines; do
  10184.     if test $ac_beg -gt 1; then
  10185.       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10186.     else
  10187.       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10188.     fi
  10189.     if test ! -s $tmp/subs.frag; then
  10190.       ac_more_lines=false
  10191.     else
  10192.       # The purpose of the label and of the branching condition is to
  10193.       # speed up the sed processing (if there are no `@' at all, there
  10194.       # is no need to browse any of the substitutions).
  10195.       # These are the two extra sed commands mentioned above.
  10196.       (echo ':t
  10197.   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  10198.       if test -z "$ac_sed_cmds"; then
  10199.       ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  10200.       else
  10201.       ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  10202.       fi
  10203.       ac_sed_frag=`expr $ac_sed_frag + 1`
  10204.       ac_beg=$ac_end
  10205.       ac_end=`expr $ac_end + $ac_max_sed_lines`
  10206.     fi
  10207.   done
  10208.   if test -z "$ac_sed_cmds"; then
  10209.     ac_sed_cmds=cat
  10210.   fi
  10211. fi # test -n "$CONFIG_FILES"
  10212.  
  10213. _ACEOF
  10214. cat >>$CONFIG_STATUS <<\_ACEOF
  10215. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  10216.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10217.   case $ac_file in
  10218.   - | *:- | *:-:* ) # input from stdin
  10219.         cat >$tmp/stdin
  10220.         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10221.         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10222.   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10223.         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10224.   * )   ac_file_in=$ac_file.in ;;
  10225.   esac
  10226.  
  10227.   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  10228.   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10229. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10230.          X"$ac_file" : 'X\(//\)[^/]' \| \
  10231.          X"$ac_file" : 'X\(//\)$' \| \
  10232.          X"$ac_file" : 'X\(/\)' \| \
  10233.          .     : '\(.\)' 2>/dev/null ||
  10234. echo X"$ac_file" |
  10235.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10236.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10237.         /^X\(\/\/\)$/{ s//\1/; q; }
  10238.         /^X\(\/\).*/{ s//\1/; q; }
  10239.         s/.*/./; q'`
  10240.   { case "$ac_dir" in
  10241.   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  10242.   *)                      as_incr_dir=.;;
  10243. esac
  10244. as_dummy="$ac_dir"
  10245. for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  10246.   case $as_mkdir_dir in
  10247.     # Skip DOS drivespec
  10248.     ?:) as_incr_dir=$as_mkdir_dir ;;
  10249.     *)
  10250.       as_incr_dir=$as_incr_dir/$as_mkdir_dir
  10251.       test -d "$as_incr_dir" ||
  10252.         mkdir "$as_incr_dir" ||
  10253.     { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
  10254. echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
  10255.    { (exit 1); exit 1; }; }
  10256.     ;;
  10257.   esac
  10258. done; }
  10259.  
  10260.   ac_builddir=.
  10261.  
  10262. if test "$ac_dir" != .; then
  10263.   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  10264.   # A "../" for each directory in $ac_dir_suffix.
  10265.   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  10266. else
  10267.   ac_dir_suffix= ac_top_builddir=
  10268. fi
  10269.  
  10270. case $srcdir in
  10271.   .)  # No --srcdir option.  We are building in place.
  10272.     ac_srcdir=.
  10273.     if test -z "$ac_top_builddir"; then
  10274.        ac_top_srcdir=.
  10275.     else
  10276.        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  10277.     fi ;;
  10278.   [\\/]* | ?:[\\/]* )  # Absolute path.
  10279.     ac_srcdir=$srcdir$ac_dir_suffix;
  10280.     ac_top_srcdir=$srcdir ;;
  10281.   *) # Relative path.
  10282.     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  10283.     ac_top_srcdir=$ac_top_builddir$srcdir ;;
  10284. esac
  10285. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  10286. # absolute.
  10287. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  10288. ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
  10289. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  10290. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  10291.  
  10292.  
  10293.   case $INSTALL in
  10294.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10295.   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  10296.   esac
  10297.  
  10298.   if test x"$ac_file" != x-; then
  10299.     { echo "$as_me:$LINENO: creating $ac_file" >&5
  10300. echo "$as_me: creating $ac_file" >&6;}
  10301.     rm -f "$ac_file"
  10302.   fi
  10303.   # Let's still pretend it is `configure' which instantiates (i.e., don't
  10304.   # use $as_me), people would be surprised to read:
  10305.   #    /* config.h.  Generated by config.status.  */
  10306.   if test x"$ac_file" = x-; then
  10307.     configure_input=
  10308.   else
  10309.     configure_input="$ac_file.  "
  10310.   fi
  10311.   configure_input=$configure_input"Generated from `echo $ac_file_in |
  10312.                                      sed 's,.*/,,'` by configure."
  10313.  
  10314.   # First look for the input files in the build tree, otherwise in the
  10315.   # src tree.
  10316.   ac_file_inputs=`IFS=:
  10317.     for f in $ac_file_in; do
  10318.       case $f in
  10319.       -) echo $tmp/stdin ;;
  10320.       [\\/$]*)
  10321.          # Absolute (can't be DOS-style, as IFS=:)
  10322.          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10323. echo "$as_me: error: cannot find input file: $f" >&2;}
  10324.    { (exit 1); exit 1; }; }
  10325.          echo $f;;
  10326.       *) # Relative
  10327.          if test -f "$f"; then
  10328.            # Build tree
  10329.            echo $f
  10330.          elif test -f "$srcdir/$f"; then
  10331.            # Source tree
  10332.            echo $srcdir/$f
  10333.          else
  10334.            # /dev/null tree
  10335.            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10336. echo "$as_me: error: cannot find input file: $f" >&2;}
  10337.    { (exit 1); exit 1; }; }
  10338.          fi;;
  10339.       esac
  10340.     done` || { (exit 1); exit 1; }
  10341. _ACEOF
  10342. cat >>$CONFIG_STATUS <<_ACEOF
  10343.   sed "$ac_vpsub
  10344. $extrasub
  10345. _ACEOF
  10346. cat >>$CONFIG_STATUS <<\_ACEOF
  10347. :t
  10348. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10349. s,@configure_input@,$configure_input,;t t
  10350. s,@srcdir@,$ac_srcdir,;t t
  10351. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  10352. s,@top_srcdir@,$ac_top_srcdir,;t t
  10353. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  10354. s,@builddir@,$ac_builddir,;t t
  10355. s,@abs_builddir@,$ac_abs_builddir,;t t
  10356. s,@top_builddir@,$ac_top_builddir,;t t
  10357. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  10358. s,@INSTALL@,$ac_INSTALL,;t t
  10359. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  10360.   rm -f $tmp/stdin
  10361.   if test x"$ac_file" != x-; then
  10362.     mv $tmp/out $ac_file
  10363.   else
  10364.     cat $tmp/out
  10365.     rm -f $tmp/out
  10366.   fi
  10367.  
  10368. done
  10369. _ACEOF
  10370.  
  10371. cat >>$CONFIG_STATUS <<\_ACEOF
  10372.  
  10373. { (exit 0); exit 0; }
  10374. _ACEOF
  10375. chmod +x $CONFIG_STATUS
  10376. ac_clean_files=$ac_clean_files_save
  10377.  
  10378.  
  10379. # configure is writing to config.log, and then calls config.status.
  10380. # config.status does its own redirection, appending to config.log.
  10381. # Unfortunately, on DOS this fails, as config.log is still kept open
  10382. # by configure, so config.status won't be able to write to it; its
  10383. # output is simply discarded.  So we exec the FD to /dev/null,
  10384. # effectively closing config.log, so it can be properly (re)opened and
  10385. # appended to by config.status.  When coming back to configure, we
  10386. # need to make the FD available again.
  10387. if test "$no_create" != yes; then
  10388.   ac_cs_success=:
  10389.   exec 5>/dev/null
  10390.   $SHELL $CONFIG_STATUS || ac_cs_success=false
  10391.   exec 5>>config.log
  10392.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10393.   # would make configure fail if this is the last instruction.
  10394.   $ac_cs_success || { (exit 1); exit 1; }
  10395. fi
  10396.  
  10397.  
  10398. # End of configure.in
  10399.